mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/thread.rb (ConditionVariable#broadcast): use Mutex
instead of Thread.exclusive. * lib/monitor.rb (MonitorMixin#mon_exit): unset @mon_owner before calling Mutex#unlock. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0fa6a335d1
commit
1adef15072
4 changed files with 17 additions and 4 deletions
|
|
@ -94,7 +94,9 @@ class TestMonitor < Test::Unit::TestCase
|
|||
assert_equal(true, result1)
|
||||
assert_equal("bar", a)
|
||||
end
|
||||
end
|
||||
|
||||
def _test_timedwait
|
||||
b = "foo"
|
||||
queue2 = Queue.new
|
||||
Thread.start do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue