зеркало из https://github.com/github/ruby.git
* lib/monitor.rb (wait): return true on signal/broadcastfalse and
false on timeout. Thanks Gennady Bystritsky. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
23efc48d0d
Коммит
ea00e4e454
|
@ -1,3 +1,8 @@
|
|||
Mon Nov 10 11:40:29 2003 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/monitor.rb (wait): return true on signal/broadcastfalse and
|
||||
false on timeout. Thanks Gennady Bystritsky.
|
||||
|
||||
Mon Nov 10 00:07:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (primary): primary_value may be 0 when syntax error.
|
||||
|
|
|
@ -132,7 +132,9 @@ module MonitorMixin
|
|||
|
||||
begin
|
||||
Thread.stop
|
||||
return true
|
||||
rescue Timeout
|
||||
return false
|
||||
ensure
|
||||
Thread.critical = true
|
||||
if timeout && timeout_thread.alive?
|
||||
|
|
Загрузка…
Ссылка в новой задаче