summaryrefslogtreecommitdiff
path: root/lib/monitor.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-10 02:44:49 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-10 02:44:49 +0000
commitea00e4e454d56169412ac42a217aa02208249930 (patch)
treeb2d5cb1f9e20481da05b085b28dfe178610abda8 /lib/monitor.rb
parent23efc48d0d2f419ee3b27b60101860822a292774 (diff)
* 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
Diffstat (limited to 'lib/monitor.rb')
-rw-r--r--lib/monitor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/monitor.rb b/lib/monitor.rb
index 5eb7bb4e03..fa446a6cfe 100644
--- a/lib/monitor.rb
+++ b/lib/monitor.rb
@@ -132,7 +132,9 @@ module MonitorMixin
begin
Thread.stop
+ return true
rescue Timeout
+ return false
ensure
Thread.critical = true
if timeout && timeout_thread.alive?