diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 07:01:18 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 07:01:18 +0000 |
| commit | 355447ae6b75e767d4691555ec04159369e366b6 (patch) | |
| tree | 871d7671561891a833a3381d7d0ee1c1d18fca39 /test/monitor | |
| parent | 61431dcd421b44f1cb5d7c6ab0de688904cccd01 (diff) | |
| download | ruby-355447ae6b75e767d4691555ec04159369e366b6.tar.gz ruby-355447ae6b75e767d4691555ec04159369e366b6.tar.xz ruby-355447ae6b75e767d4691555ec04159369e366b6.zip | |
* 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
Diffstat (limited to 'test/monitor')
| -rw-r--r-- | test/monitor/test_monitor.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
