mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
||||
#
|
||||
|
@ -100,6 +102,7 @@ class ConditionVariable
|
|||
rescue ThreadError
|
||||
end
|
||||
end
|
||||
self
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue