diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-29 15:55:44 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-29 15:55:44 +0000 |
commit | 3a9117011fdbcfd75e84cf5c0006bf357a20f959 (patch) | |
tree | dc9fd3e3ef2f858a1da47a1ce8c8806b54bb8bc2 /thread.c | |
parent | b3ad7b9ea14bd28606e871a6be9a7dba6201cb3d (diff) | |
download | ruby-3a9117011fdbcfd75e84cf5c0006bf357a20f959.tar.gz |
* thread.c (rb_thread_stop): change RDoc sample code. 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@32300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1660,7 +1660,7 @@ rb_thread_run(VALUE thread) * and schedules execution of another thread. * * a = Thread.new { print "a"; Thread.stop; print "c" } - * Thread.pass + * sleep 0.1 while a.status!='sleep' * print "b" * a.run * a.join |