instance method
Thread::Queue#num_waiting
() -> ::Integer
num_waiting
thread_sync.c
View on GitHub ↗
static VALUE
rb_queue_num_waiting(VALUE self)
{
struct rb_queue *q = queue_ptr(self);
return INT2NUM(q->num_waiting);
}
Returns the number of threads waiting on the queue.