Make Thread#join non-blocking.

This commit is contained in:
Samuel Williams 2020-09-21 09:54:08 +12:00
parent 596173155a
commit 70f08f1eed
Notes: git 2020-09-21 08:49:08 +09:00
7 changed files with 168 additions and 127 deletions

View file

@ -246,7 +246,7 @@ mutex_owned_p(rb_fiber_t *fiber, rb_mutex_t *mutex)
}
static VALUE call_rb_scheduler_block(VALUE mutex) {
return rb_scheduler_block(rb_thread_current_scheduler(), mutex);
return rb_scheduler_block(rb_thread_current_scheduler(), mutex, Qnil);
}
static VALUE remove_from_mutex_lock_waiters(VALUE arg) {