aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/sync.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4584cb39c2..7fdbdd9a78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 10 10:12:29 2008 akira yamada <akira@arika.org>
+
+ * lib/sync.rb (Sync_m#sync_exclusive): fixed
+ typo. [ruby-dev:36233] [RubyForge#11680]
+
Wed Sep 10 01:57:23 2008 Tanaka Akira <akr@fsij.org>
* tool/transcode-tblgen.rb (StrSet#hash): cache hash value.
diff --git a/lib/sync.rb b/lib/sync.rb
index 22f160f290..f4dea76d1f 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