diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-29 15:47:24 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-29 15:47:24 +0000 |
commit | b07b51f7fc03630e073ebd39006e0727e379ff71 (patch) | |
tree | 0a11fdc76edf6e8ccfad2592886a899bf8c5c941 /thread.c | |
parent | 09dee51be3de0d3849c98e600238ef6944a2786a (diff) | |
download | ruby-b07b51f7fc03630e073ebd39006e0727e379ff71.tar.gz |
* thread.c (rb_thread_run): change RDoc. The old example is buggy
and may cause deadlock. The patch is suggested by Heesob Park
<phasis@gmail.com>. Thank you! [Bug #3606][ruby-core:31454]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1629,7 +1629,7 @@ rb_thread_wakeup_alive(VALUE thread) * Wakes up <i>thr</i>, making it eligible for scheduling. * * a = Thread.new { puts "a"; Thread.stop; puts "c" } - * Thread.pass + * sleep 0.1 while a.status!='sleep' * puts "Got here" * a.run * a.join |