From cdeff42cc1838fe71d562c6bd96e2437a3e90170 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 17 Jun 2012 07:21:03 +0000 Subject: thread_win32.h: rb_thread_lock_t for USE_WIN32_MUTEX * thread_win32.h (rb_thread_lock_t): make a union for USE_WIN32_MUTEX. this internal is used only in thread_win32.c, but has to be complete to define rb_thread_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_win32.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'thread_win32.h') 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; -- cgit v1.2.1