* 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
This commit is contained in:
parent
afc9fce01f
commit
0aafb0b4b6
@ -1,3 +1,8 @@
|
||||
Wed Jan 27 23:29:36 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* lib/thread.rb (ConditionVariable#wait, signal, broadcast): return
|
||||
self (for 1.8 compatibility).
|
||||
|
||||
Wed Jan 27 23:27:54 2010 Keiju Ishitsuka <keiju@emperor2.pendome>
|
||||
|
||||
* lib/matrix.rb: add exception Matrix::ErrOperationNotImplemented
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user