summaryrefslogtreecommitdiff
path: root/thread_sync.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-23 02:18:52 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-23 02:18:52 (GMT)
commit96db72ce38b27799dd8e80ca00696e41234db6ba (patch)
tree4c210692772faf26ed8ddac746dc79aec0240e2d /thread_sync.c
parentb9d01e225723b3dfb6e18d0dcb790c20fef78d63 (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.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/thread_sync.c b/thread_sync.c
index f1537b6..e4a28cc 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)
{