diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-23 02:18:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-23 02:18:52 +0000 |
commit | 96db72ce38b27799dd8e80ca00696e41234db6ba (patch) | |
tree | 4c210692772faf26ed8ddac746dc79aec0240e2d /thread_sync.c | |
parent | b9d01e225723b3dfb6e18d0dcb790c20fef78d63 (diff) |
[DOC] missing docs at toplevel
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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) { |