From 283c36e761b55a6f393b088261b7ceee8c83d6e8 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 28 Nov 2010 13:16:50 +0000 Subject: [PATCH] * thread_pthread.c (NATIVE_MUTEX_LOCK_DEBUG): move and use it. * ChangeLog: fix my timezone. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++-- thread_pthread.c | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b3b9e4a221..134cb006eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,14 @@ -Mon Nov 29 05:58:58 2010 Koichi Sasada +Sun Nov 28 22:13:39 2010 Koichi Sasada + + * thread_pthread.c (NATIVE_MUTEX_LOCK_DEBUG): move and use it. + + * ChangeLog: fix my timezone. + +Mon Nov 28 21:58:58 2010 Koichi Sasada * thread_pthread.c: remove pthread_atfork(). -Mon Nov 29 05:54:22 2010 Koichi Sasada +Mon Nov 28 21:54:22 2010 Koichi Sasada * thread_pthread.c (native_cond_*): Check return code. (Some OSs except Linux return error code). diff --git a/thread_pthread.c b/thread_pthread.c index c5f04e4d9e..a7def4d42f 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -153,10 +153,12 @@ gvl_atfork(rb_vm_t *vm) gvl_acquire(vm, GET_THREAD()); } +#define NATIVE_MUTEX_LOCK_DEBUG 0 + static void mutex_debug(const char *msg, pthread_mutex_t *lock) { - if (0) { + if (NATIVE_MUTEX_LOCK_DEBUG) { int r; static pthread_mutex_t dbglock = PTHREAD_MUTEX_INITIALIZER; @@ -166,8 +168,6 @@ mutex_debug(const char *msg, pthread_mutex_t *lock) } } -#define NATIVE_MUTEX_LOCK_DEBUG 1 - static void native_mutex_lock(pthread_mutex_t *lock) {