diff options
Diffstat (limited to 'deps/uv/include/uv-win.h')
-rw-r--r-- | deps/uv/include/uv-win.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/deps/uv/include/uv-win.h b/deps/uv/include/uv-win.h index fd844202b9..a0b1ef028d 100644 --- a/deps/uv/include/uv-win.h +++ b/deps/uv/include/uv-win.h @@ -250,8 +250,16 @@ typedef union { /* windows.h. */ SRWLOCK srwlock_; struct { - uv_mutex_t read_mutex_; - uv_mutex_t write_mutex_; + union { + CRITICAL_SECTION cs; + /* TODO: remove me in v2.x. */ + uv_mutex_t unused; + } read_lock_; + union { + HANDLE sem; + /* TODO: remove me in v2.x. */ + uv_mutex_t unused; + } write_lock_; unsigned int num_readers_; } fallback_; } uv_rwlock_t; |