Method: ConditionVariable#signal
- Defined in:
- thread_sync.c
#signal ⇒ Object
Wakes up the first thread in line waiting for this lock.
1418 1419 1420 1421 1422 1423 1424 |
# File 'thread_sync.c', line 1418 static VALUE rb_condvar_signal(VALUE self) { struct rb_condvar *cv = condvar_ptr(self); wakeup_one(&cv->waitq); return self; } |