summaryrefslogtreecommitdiff
path: root/test/monitor
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 07:01:18 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 07:01:18 +0000
commit1adef150721a42b9efe97ebc18de535040810e7a (patch)
tree871d7671561891a833a3381d7d0ee1c1d18fca39 /test/monitor
parent0fa6a335d10db5a9a717bf9073f7bd6964fc8c85 (diff)
* 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
Diffstat (limited to 'test/monitor')
-rw-r--r--test/monitor/test_monitor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/monitor/test_monitor.rb b/test/monitor/test_monitor.rb
index b539cb3..064471e 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