summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 15:47:24 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 15:47:24 +0000
commitb07b51f7fc03630e073ebd39006e0727e379ff71 (patch)
tree0a11fdc76edf6e8ccfad2592886a899bf8c5c941 /thread.c
parent09dee51be3de0d3849c98e600238ef6944a2786a (diff)
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 678c16ff62..0f7bce4e1c 100644
--- a/thread.c
+++ b/thread.c
@@ -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