From 355447ae6b75e767d4691555ec04159369e366b6 Mon Sep 17 00:00:00 2001 From: shugo Date: Sat, 24 Feb 2007 07:01:18 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@11848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/monitor/test_monitor.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/monitor') diff --git a/test/monitor/test_monitor.rb b/test/monitor/test_monitor.rb index b539cb3cc..064471eec 100644 --- a/test/monitor/test_monitor.rb +++ b/test/monitor/test_monitor.rb @@ -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 -- cgit