Method: Thread::Queue#empty?

Defined in:
thread_sync.c

#empty?Boolean

Returns true if the queue is empty.

Returns:

  • (Boolean)

1131
1132
1133
1134
1135
# File 'thread_sync.c', line 1131

static VALUE
rb_queue_empty_p(VALUE self)
{
    return RBOOL(queue_length(self, queue_ptr(self)) == 0);
}