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>
|
Wed Jan 27 23:27:54 2010 Keiju Ishitsuka <keiju@emperor2.pendome>
|
||||||
|
|
||||||
* lib/matrix.rb: add exception Matrix::ErrOperationNotImplemented
|
* lib/matrix.rb: add exception Matrix::ErrOperationNotImplemented
|
||||||
|
|
|
@ -70,6 +70,7 @@ class ConditionVariable
|
||||||
end
|
end
|
||||||
mutex.sleep timeout
|
mutex.sleep timeout
|
||||||
end
|
end
|
||||||
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -82,6 +83,7 @@ class ConditionVariable
|
||||||
rescue ThreadError
|
rescue ThreadError
|
||||||
retry
|
retry
|
||||||
end
|
end
|
||||||
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -96,10 +98,11 @@ class ConditionVariable
|
||||||
end
|
end
|
||||||
for t in waiters0
|
for t in waiters0
|
||||||
begin
|
begin
|
||||||
t.run
|
t.run
|
||||||
rescue ThreadError
|
rescue ThreadError
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
self
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue