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 /lib/monitor.rb | |
| 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 'lib/monitor.rb')
| -rw-r--r-- | lib/monitor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/monitor.rb b/lib/monitor.rb index a40d92472..b55674757 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 |
