зеркало из https://github.com/github/ruby.git
Use Thread.pass until thread.stop? to wait for thread to block
[Bug #19415] It should be more reliable
This commit is contained in:
Родитель
63e1769b16
Коммит
3a0f6ce1d3
|
@ -1,4 +1,4 @@
|
|||
object = ScratchPad.recorded
|
||||
thread = Thread.new { object.require(__FILE__) }
|
||||
thread.wakeup unless thread.stop?
|
||||
Thread.pass until thread.stop?
|
||||
ScratchPad.record(thread)
|
||||
|
|
Загрузка…
Ссылка в новой задаче