aboutsummaryrefslogtreecommitdiffstats
path: root/thread_sync.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-23 02:18:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-23 02:18:52 +0000
commitce9a83a7367e55745abf4dc8c2ac2a80369b277d (patch)
tree4c210692772faf26ed8ddac746dc79aec0240e2d /thread_sync.c
parentcace5da8e53120bc497b677b4a03128d5cd4b687 (diff)
downloadruby-ce9a83a7367e55745abf4dc8c2ac2a80369b277d.tar.gz
[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 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)
{