aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
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)
{