mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
* 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
This commit is contained in:
parent
5f131b648d
commit
ada9870af9
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue