diff options
Diffstat (limited to 'thread_sync.c')
-rw-r--r-- | thread_sync.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/thread_sync.c b/thread_sync.c index f1537b6a90..e4a28ccb5c 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -649,6 +649,13 @@ queue_closed_p(VALUE self) return FL_TEST_RAW(self, QUEUE_CLOSED) != 0; } +/* + * Document-class: ClosedQueueError + * + * The exception class which will be raised when pushing into a close + * Queue. See Queue#close and SizedQueue#close. + */ + NORETURN(static void raise_closed_queue_error(VALUE self)); static void @@ -1161,6 +1168,15 @@ rb_szqueue_clear(VALUE self) return self; } +/* + * Document-method: SizedQueue#length + * call-seq: + * length + * size + * + * Returns the length of the queue. + */ + static VALUE rb_szqueue_length(VALUE self) { |