mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
9f9add3eb5
commit
084487a372
2 changed files with 15 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Thu Sep 29 19:21:02 2016 Pete Higgins <pete@peterhiggins.org>
|
||||||
|
|
||||||
|
* thread_sync.c (Init_thread_sync): Remove confusing doc comments,
|
||||||
|
which are picked up by rdoc unexpectedly, from Queue and
|
||||||
|
SizedQueue. [Fix GH-1450]
|
||||||
|
|
||||||
Wed Sep 28 23:14:19 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Sep 28 23:14:19 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/pstore.rb (PStore::CHECKSUM_ALGO): find available hashing
|
* lib/pstore.rb (PStore::CHECKSUM_ALGO): find available hashing
|
||||||
|
|
|
@ -1274,11 +1274,11 @@ Init_thread_sync(void)
|
||||||
rb_define_method(rb_cQueue, "length", rb_queue_length, 0);
|
rb_define_method(rb_cQueue, "length", rb_queue_length, 0);
|
||||||
rb_define_method(rb_cQueue, "num_waiting", rb_queue_num_waiting, 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, "enq", "push");
|
||||||
rb_define_alias(rb_cQueue, "<<", "push"); /* Alias for #push. */
|
rb_define_alias(rb_cQueue, "<<", "push");
|
||||||
rb_define_alias(rb_cQueue, "deq", "pop"); /* Alias for #pop. */
|
rb_define_alias(rb_cQueue, "deq", "pop");
|
||||||
rb_define_alias(rb_cQueue, "shift", "pop"); /* Alias for #pop. */
|
rb_define_alias(rb_cQueue, "shift", "pop");
|
||||||
rb_define_alias(rb_cQueue, "size", "length"); /* Alias for #length. */
|
rb_define_alias(rb_cQueue, "size", "length");
|
||||||
|
|
||||||
rb_cSizedQueue = rb_struct_define_without_accessor_under(
|
rb_cSizedQueue = rb_struct_define_without_accessor_under(
|
||||||
rb_cThread,
|
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, "clear", rb_szqueue_clear, 0);
|
||||||
rb_define_method(rb_cSizedQueue, "num_waiting", rb_szqueue_num_waiting, 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, "enq", "push");
|
||||||
rb_define_alias(rb_cSizedQueue, "<<", "push"); /* Alias for #push. */
|
rb_define_alias(rb_cSizedQueue, "<<", "push");
|
||||||
rb_define_alias(rb_cSizedQueue, "deq", "pop"); /* Alias for #pop. */
|
rb_define_alias(rb_cSizedQueue, "deq", "pop");
|
||||||
rb_define_alias(rb_cSizedQueue, "shift", "pop"); /* Alias for #pop. */
|
rb_define_alias(rb_cSizedQueue, "shift", "pop");
|
||||||
|
|
||||||
/* CVar */
|
/* CVar */
|
||||||
rb_cConditionVariable = rb_struct_define_without_accessor_under(
|
rb_cConditionVariable = rb_struct_define_without_accessor_under(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue