summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-29 15:20:00 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-29 15:20:00 +0000
commitada9870af9da1443fe7be51ee50c98cdbfb53c45 (patch)
tree28bd70db755280ed957cc4de49a2beb75c33d3c3 /thread_pthread.c
parent5f131b648dfb8b5817ca4c9ad02e9e89da3055f5 (diff)
* thread_pthread.c (gvl_init): fix hangup if GVL_SIMPLE_LOCK=1.
We don't have to call mutex_unlock() before initialize it! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index f60da8ab7e..4161f663db 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -128,7 +128,7 @@ gvl_init(rb_vm_t *vm)
if (GVL_DEBUG) fprintf(stderr, "gvl init\n");
#if GVL_SIMPLE_LOCK
- native_mutex_reinitialize_atfork(&vm->gvl.lock);
+ native_mutex_initialize(&vm->gvl.lock);
#else
native_mutex_initialize(&vm->gvl.lock);
vm->gvl.waiting_threads = 0;