ruby-changes:24067
From: nobu <ko1@a...>
Date: Sun, 17 Jun 2012 16:21:10 +0900 (JST)
Subject: [ruby-changes:24067] nobu:r36118 (trunk): thread_win32.c: USE_WIN32_MUTEX
nobu 2012-06-17 16:20:58 +0900 (Sun, 17 Jun 2012) New Revision: 36118 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36118 Log: thread_win32.c: USE_WIN32_MUTEX * thread_win32.c (native_mutex_lock, native_mutex_destroy): fix for USE_WIN32_MUTEX. Modified files: trunk/ChangeLog trunk/thread_win32.c Index: thread_win32.c =================================================================== --- thread_win32.c (revision 36117) +++ thread_win32.c (revision 36118) @@ -343,8 +343,8 @@ w32_mutex_lock(*lock); #else EnterCriticalSection(lock); +#endif return 0; -#endif } static int @@ -394,7 +394,7 @@ native_mutex_destroy(rb_thread_lock_t *lock) { #if USE_WIN32_MUTEX - w32_close_handle(lock); + w32_close_handle(*lock); #else DeleteCriticalSection(lock); #endif Index: ChangeLog =================================================================== --- ChangeLog (revision 36117) +++ ChangeLog (revision 36118) @@ -1,5 +1,8 @@ -Sun Jun 17 16:20:50 2012 Nobuyoshi Nakada <nobu@r...> +Sun Jun 17 16:20:56 2012 Nobuyoshi Nakada <nobu@r...> + * thread_win32.c (native_mutex_lock, native_mutex_destroy): fix for + USE_WIN32_MUTEX. + * thread_win32.c (native_cond_timedwait_ms): rename reserved pattern name. user defined symbols should not start with __. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/