diff options
Diffstat (limited to 'thread_win32.h')
-rw-r--r-- | thread_win32.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/thread_win32.h b/thread_win32.h index 4098a42606..9c1c4674ef 100644 --- a/thread_win32.h +++ b/thread_win32.h @@ -22,7 +22,12 @@ WINBASEAPI BOOL WINAPI TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection); typedef HANDLE rb_thread_id_t; -typedef CRITICAL_SECTION rb_thread_lock_t; + +typedef union rb_thread_lock_union { + HANDLE mutex; + CRITICAL_SECTION crit; +} rb_thread_lock_t; + typedef struct rb_thread_cond_struct { struct cond_event_entry *next; struct cond_event_entry *prev; |