1
0
Fork 0
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:
shugo 2007-02-24 07:01:18 +00:00
parent 0fa6a335d1
commit 1adef15072
4 changed files with 17 additions and 4 deletions

View file

@ -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