instance method
Thread::SizedQueue#clear
() -> void
clear
thread_sync.c
View on GitHub ↗
static VALUE
rb_szqueue_clear(VALUE self)
{
struct rb_szqueue *sq = szqueue_ptr(self);
rb_ary_clear(check_array(self, sq->q.que));
wakeup_all(szqueue_pushq(sq));
return self;
}
Removes all objects from the queue.