Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: make uv_rwlock_init initialize libuv
Browse files Browse the repository at this point in the history
Without this patch, the fallback implementation would be used if
uv_rwlock_init were to be called before a loop was created or
uv_default_loop() was called.
  • Loading branch information
piscisaureus committed Oct 3, 2012
1 parent fed718c commit 744dc3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/win/thread.c
Expand Up @@ -140,6 +140,8 @@ void uv_mutex_unlock(uv_mutex_t* mutex) {


int uv_rwlock_init(uv_rwlock_t* rwlock) {
uv__once_init();

if (HAVE_SRWLOCK_API())
return uv__rwlock_srwlock_init(rwlock);
else
Expand Down

0 comments on commit 744dc3e

Please sign in to comment.