From 96db72ce38b27799dd8e80ca00696e41234db6ba Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 23 Feb 2018 02:18:52 +0000 Subject: [DOC] missing docs at toplevel git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_sync.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'thread_sync.c') 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) { -- cgit v1.2.3