aboutsummaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-17 07:20:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-17 07:20:58 +0000
commit3c5664563446185c0b7d95de013d47b766122ba8 (patch)
tree1dd5c73b1f72b1268485ac4dd103c9245a9963cc /thread_win32.c
parentdc320f43e1421afaaba0ebe466e6c133978d599a (diff)
downloadruby-3c5664563446185c0b7d95de013d47b766122ba8.tar.gz
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
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 2410cfae81..b77fdbb9a6 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -343,8 +343,8 @@ native_mutex_lock(rb_thread_lock_t *lock)
w32_mutex_lock(*lock);
#else
EnterCriticalSection(lock);
- return 0;
#endif
+ return 0;
}
static int
@@ -394,7 +394,7 @@ static void
native_mutex_destroy(rb_thread_lock_t *lock)
{
#if USE_WIN32_MUTEX
- w32_close_handle(lock);
+ w32_close_handle(*lock);
#else
DeleteCriticalSection(lock);
#endif