summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 6337620e8a..775c32a6a7 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1044,7 +1044,7 @@ native_sleep(rb_thread_t *th, struct timespec *timeout_rel)
timeout = native_cond_timeout(cond, *timeout_rel);
}
- GVL_UNLOCK_BEGIN();
+ GVL_UNLOCK_BEGIN(th);
{
rb_native_mutex_lock(lock);
th->unblock.func = ubf_pthread_cond_signal;
@@ -1065,7 +1065,7 @@ native_sleep(rb_thread_t *th, struct timespec *timeout_rel)
rb_native_mutex_unlock(lock);
}
- GVL_UNLOCK_END();
+ GVL_UNLOCK_END(th);
thread_debug("native_sleep done\n");
}