diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 39b8e79f49..33443ac054 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1716,9 +1716,9 @@ native_sleep(rb_thread_t *th, struct timespec *timeout_rel) check_signals_nogvl(th, sigwait_fd); } unblock_function_clear(th); + GVL_UNLOCK_END(th); rb_sigwait_fd_put(th, sigwait_fd); rb_sigwait_fd_migrate(th->vm); - GVL_UNLOCK_END(th); } else { native_cond_sleep(th, timeout_rel); |