зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
b3ad7b9ea1
Коммит
3a9117011f
|
@ -1,3 +1,10 @@
|
|||
Thu Jun 30 00:54:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* 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]
|
||||
|
||||
Thu Jun 30 00:49:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread.c (rb_thread_wakeup): change RDoc sample code. The old
|
||||
|
|
2
thread.c
2
thread.c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче