summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-10 01:22:35 +0000
committerakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-10 01:22:35 +0000
commit17d0ab997181e34dd37f3096e7415488b986801f (patch)
tree5be3c66d2c69d63fc71089af8c9f947a0a89fccb /lib
parent03c0013466deabcc1053a2c23010fd7ac60bb787 (diff)
downloadruby-17d0ab997181e34dd37f3096e7415488b986801f.tar.gz
ruby-17d0ab997181e34dd37f3096e7415488b986801f.tar.xz
ruby-17d0ab997181e34dd37f3096e7415488b986801f.zip
* lib/sync.rb (Sync_m#sync_exclusive): fixed
typo. [ruby-dev:36233] [RubyForge#11680] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/sync.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sync.rb b/lib/sync.rb
index 22f160f29..f4dea76d1 100644
--- a/lib/sync.rb
+++ b/lib/sync.rb
@@ -126,9 +126,9 @@ module Sync_m
# locking methods.
def sync_try_lock(mode = EX)
- return unlock if sync_mode == UN
+ return unlock if mode == UN
@sync_mutex.synchronize do
- ret = sync_try_lock_sub(sync_mode)
+ ret = sync_try_lock_sub(mode)
end
ret
end