aboutsummaryrefslogtreecommitdiffstats
path: root/lib/monitor.rb
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 /lib/monitor.rb
parent0fa6a335d10db5a9a717bf9073f7bd6964fc8c85 (diff)
downloadruby-1adef150721a42b9efe97ebc18de535040810e7a.tar.gz
* 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 'lib/monitor.rb')
-rw-r--r--lib/monitor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/monitor.rb b/lib/monitor.rb
index a40d924726..b556747577 100644
--- a/lib/monitor.rb
+++ b/lib/monitor.rb
@@ -174,8 +174,8 @@ module MonitorMixin
mon_check_owner
@mon_count -=1
if @mon_count == 0
- @mon_mutex.unlock
@mon_owner = nil
+ @mon_mutex.unlock
end
end