mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
23efc48d0d
commit
ea00e4e454
2 changed files with 7 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue