summaryrefslogtreecommitdiff
path: root/thread_sync.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-29 10:21:04 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-29 10:21:04 (GMT)
commit084487a37251b9105bb35c1de6a351f7310a2789 (patch)
tree9d6ff6f26bf0d5f6a5a0f8cda90d5e8f43f836a1 /thread_sync.c
parent9f9add3eb5006473dfabac3e994e904b5c1979fe (diff)
thread_sync.c: Remove confusing comments
* thread_sync.c (Init_thread_sync): Remove confusing doc comments, which are picked up by rdoc unexpectedly, from Queue and SizedQueue. [Fix GH-1450] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_sync.c')
-rw-r--r--thread_sync.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/thread_sync.c b/thread_sync.c
index d7975be..3b2286a 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -1274,11 +1274,11 @@ Init_thread_sync(void)
rb_define_method(rb_cQueue, "length", rb_queue_length, 0);
rb_define_method(rb_cQueue, "num_waiting", rb_queue_num_waiting, 0);
- rb_define_alias(rb_cQueue, "enq", "push"); /* Alias for #push. */
- rb_define_alias(rb_cQueue, "<<", "push"); /* Alias for #push. */
- rb_define_alias(rb_cQueue, "deq", "pop"); /* Alias for #pop. */
- rb_define_alias(rb_cQueue, "shift", "pop"); /* Alias for #pop. */
- rb_define_alias(rb_cQueue, "size", "length"); /* Alias for #length. */
+ rb_define_alias(rb_cQueue, "enq", "push");
+ rb_define_alias(rb_cQueue, "<<", "push");
+ rb_define_alias(rb_cQueue, "deq", "pop");
+ rb_define_alias(rb_cQueue, "shift", "pop");
+ rb_define_alias(rb_cQueue, "size", "length");
rb_cSizedQueue = rb_struct_define_without_accessor_under(
rb_cThread,
@@ -1294,10 +1294,10 @@ Init_thread_sync(void)
rb_define_method(rb_cSizedQueue, "clear", rb_szqueue_clear, 0);
rb_define_method(rb_cSizedQueue, "num_waiting", rb_szqueue_num_waiting, 0);
- rb_define_alias(rb_cSizedQueue, "enq", "push"); /* Alias for #push. */
- rb_define_alias(rb_cSizedQueue, "<<", "push"); /* Alias for #push. */
- rb_define_alias(rb_cSizedQueue, "deq", "pop"); /* Alias for #pop. */
- rb_define_alias(rb_cSizedQueue, "shift", "pop"); /* Alias for #pop. */
+ rb_define_alias(rb_cSizedQueue, "enq", "push");
+ rb_define_alias(rb_cSizedQueue, "<<", "push");
+ rb_define_alias(rb_cSizedQueue, "deq", "pop");
+ rb_define_alias(rb_cSizedQueue, "shift", "pop");
/* CVar */
rb_cConditionVariable = rb_struct_define_without_accessor_under(