ext/libuv/include/uv-win.h in libuv-2.0.5 vs ext/libuv/include/uv-win.h in libuv-2.0.6
- old
+ new
@@ -244,17 +244,23 @@
HANDLE broadcast_event;
} fallback;
} uv_cond_t;
typedef union {
- /* srwlock_ has type SRWLOCK, but not all toolchains define this type in */
- /* windows.h. */
- SRWLOCK srwlock_;
struct {
- uv_mutex_t read_mutex_;
- uv_mutex_t write_mutex_;
unsigned int num_readers_;
- } fallback_;
+ CRITICAL_SECTION num_readers_lock_;
+ HANDLE write_semaphore_;
+ } state_;
+ /* TODO: remove me in v2.x. */
+ struct {
+ SRWLOCK unused_;
+ } unused1_;
+ /* TODO: remove me in v2.x. */
+ struct {
+ uv_mutex_t unused1_;
+ uv_mutex_t unused2_;
+ } unused2_;
} uv_rwlock_t;
typedef struct {
unsigned int n;
unsigned int count;