Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 3c5664563446185c0b7d95de013d47b766122ba8 1 parent dc320f4
Nobuyoshi Nakada authored June 17, 2012

Showing 2 changed files with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  ChangeLog
  2. 4  thread_win32.c
5  ChangeLog
... ...
@@ -1,4 +1,7 @@
1  
-Sun Jun 17 16:20:50 2012  Nobuyoshi Nakada  <nobu@ruby-lang.org>
  1
+Sun Jun 17 16:20:56 2012  Nobuyoshi Nakada  <nobu@ruby-lang.org>
  2
+
  3
+	* thread_win32.c (native_mutex_lock, native_mutex_destroy): fix for
  4
+	  USE_WIN32_MUTEX.
2 5
 
3 6
 	* thread_win32.c (native_cond_timedwait_ms): rename reserved pattern
4 7
 	  name.  user defined symbols should not start with __.
4  thread_win32.c
@@ -343,8 +343,8 @@ native_mutex_lock(rb_thread_lock_t *lock)
343 343
     w32_mutex_lock(*lock);
344 344
 #else
345 345
     EnterCriticalSection(lock);
346  
-    return 0;
347 346
 #endif
  347
+    return 0;
348 348
 }
349 349
 
350 350
 static int
@@ -394,7 +394,7 @@ static void
394 394
 native_mutex_destroy(rb_thread_lock_t *lock)
395 395
 {
396 396
 #if USE_WIN32_MUTEX
397  
-    w32_close_handle(lock);
  397
+    w32_close_handle(*lock);
398 398
 #else
399 399
     DeleteCriticalSection(lock);
400 400
 #endif

0 notes on commit 3c56645

Please sign in to comment.
Something went wrong with that request. Please try again.