summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-28 13:16:50 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-28 13:16:50 +0000
commit283c36e761b55a6f393b088261b7ceee8c83d6e8 (patch)
tree219812f3f5e29c09e4b6c33c64021feb19c3ec17 /thread_pthread.c
parente4cf9c59fda102a80aa767c3a66a4738e26f6213 (diff)
* 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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c6
1 files changed, 3 insertions, 3 deletions
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)
{