ruby-changes:42072
From: nobu <ko1@a...>
Date: Thu, 17 Mar 2016 17:20:34 +0900 (JST)
Subject: [ruby-changes:42072] nobu:r54146 (trunk): thread_sync.c: Update rdoc for Queue [skip ci]
nobu 2016-03-17 17:20:29 +0900 (Thu, 17 Mar 2016) New Revision: 54146 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54146 Log: thread_sync.c: Update rdoc for Queue [skip ci] * thread_sync.c: [DOC] Update documentation for Queue class description. [Fix GH-1292] Modified files: trunk/ChangeLog trunk/thread_sync.c Index: ChangeLog =================================================================== --- ChangeLog (revision 54145) +++ ChangeLog (revision 54146) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Mar 17 17:20:28 2016 Anton Davydov <antondavydov.o@g...> + + * thread_sync.c: [DOC] Update documentation for Queue class + description. [Fix GH-1292] + Thu Mar 17 17:14:51 2016 Dinar Valeev <dvaleev@s...> * gc.c (tick): Use __builtin_ppc_get_timebase for POWER arch. Index: thread_sync.c =================================================================== --- thread_sync.c (revision 54145) +++ thread_sync.c (revision 54146) @@ -632,7 +632,13 @@ queue_do_close(VALUE self, int is_szq) https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L632 /* * Document-class: Queue * - * This class provides a way to synchronize communication between threads. + * The Queue class implements multi-producer, multi-consumer queues. + * It is especially useful in threaded programming when information + * must be exchanged safely between multiple threads. The Queue class + * implements all the required locking semantics. + * + * The class implements FIFO type of queue. In a FIFO queue, the first + * tasks added are the first retrieved. * * Example: * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/