thread_win32.c: USE_WIN32_MUTEX
* thread_win32.c (native_mutex_lock, native_mutex_destroy): fix for USE_WIN32_MUTEX. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dc320f43e1
commit
3c56645634
@ -1,4 +1,7 @@
|
|||||||
Sun Jun 17 16:20:50 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Jun 17 16:20:56 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* thread_win32.c (native_mutex_lock, native_mutex_destroy): fix for
|
||||||
|
USE_WIN32_MUTEX.
|
||||||
|
|
||||||
* thread_win32.c (native_cond_timedwait_ms): rename reserved pattern
|
* thread_win32.c (native_cond_timedwait_ms): rename reserved pattern
|
||||||
name. user defined symbols should not start with __.
|
name. user defined symbols should not start with __.
|
||||||
|
@ -343,8 +343,8 @@ native_mutex_lock(rb_thread_lock_t *lock)
|
|||||||
w32_mutex_lock(*lock);
|
w32_mutex_lock(*lock);
|
||||||
#else
|
#else
|
||||||
EnterCriticalSection(lock);
|
EnterCriticalSection(lock);
|
||||||
return 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -394,7 +394,7 @@ static void
|
|||||||
native_mutex_destroy(rb_thread_lock_t *lock)
|
native_mutex_destroy(rb_thread_lock_t *lock)
|
||||||
{
|
{
|
||||||
#if USE_WIN32_MUTEX
|
#if USE_WIN32_MUTEX
|
||||||
w32_close_handle(lock);
|
w32_close_handle(*lock);
|
||||||
#else
|
#else
|
||||||
DeleteCriticalSection(lock);
|
DeleteCriticalSection(lock);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user