summaryrefslogtreecommitdiff
path: root/lib/thread.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 14:30:37 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 14:30:37 +0000
commit0aafb0b4b645bf41540bc2f625d040d63bd06baf (patch)
treef36880b5054a760df2f929302ffcb13133eb11d6 /lib/thread.rb
parentafc9fce01f0557751d38376ed56221e6d5e99488 (diff)
downloadruby-0aafb0b4b645bf41540bc2f625d040d63bd06baf.tar.gz
* lib/thread.rb (ConditionVariable#wait, signal, broadcast): return
self (for 1.8 compatibility). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/thread.rb')
-rw-r--r--lib/thread.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/thread.rb b/lib/thread.rb
index 34c2a506d2..4f296bb8b3 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -70,6 +70,7 @@ class ConditionVariable
end
mutex.sleep timeout
end
+ self
end
#
@@ -82,6 +83,7 @@ class ConditionVariable
rescue ThreadError
retry
end
+ self
end
#
@@ -96,10 +98,11 @@ class ConditionVariable
end
for t in waiters0
begin
- t.run
+ t.run
rescue ThreadError
end
end
+ self
end
end