* thread.c (rb_thread_wakeup): rdoc formatting
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e016ec1707
commit
f7a7138d5b
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 27 12:57:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
|
* thread.c (rb_thread_wakeup): rdoc formatting
|
||||||
|
|
||||||
Wed Feb 27 12:53:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
Wed Feb 27 12:53:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
* thread.c (rb_thread_group): rdoc formatting
|
* thread.c (rb_thread_group): rdoc formatting
|
||||||
|
8
thread.c
8
thread.c
@ -2174,15 +2174,17 @@ rb_thread_exit(void)
|
|||||||
* call-seq:
|
* call-seq:
|
||||||
* thr.wakeup -> thr
|
* thr.wakeup -> thr
|
||||||
*
|
*
|
||||||
* Marks <i>thr</i> as eligible for scheduling (it may still remain blocked on
|
* Marks a given thread as eligible for scheduling, however it may still
|
||||||
* I/O, however). Does not invoke the scheduler (see <code>Thread#run</code>).
|
* remain blocked on I/O.
|
||||||
|
*
|
||||||
|
* *Note:* This does not invoke the scheduler, see #run for more information.
|
||||||
*
|
*
|
||||||
* c = Thread.new { Thread.stop; puts "hey!" }
|
* c = Thread.new { Thread.stop; puts "hey!" }
|
||||||
* sleep 0.1 while c.status!='sleep'
|
* sleep 0.1 while c.status!='sleep'
|
||||||
* c.wakeup
|
* c.wakeup
|
||||||
* c.join
|
* c.join
|
||||||
*
|
*
|
||||||
* <em>produces:</em>
|
* _produces:_
|
||||||
*
|
*
|
||||||
* hey!
|
* hey!
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user