Method: Thread::Queue#num_waiting
- Defined in:
- thread_sync.c
#num_waiting ⇒ Object
Returns the number of threads waiting on the queue.
1189 1190 1191 1192 1193 1194 1195 |
# File 'thread_sync.c', line 1189 static VALUE rb_queue_num_waiting(VALUE self) { struct rb_queue *q = queue_ptr(self); return INT2NUM(q->num_waiting); } |