summaryrefslogtreecommitdiff
path: root/lib/sync.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sync.rb')
-rw-r--r--lib/sync.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sync.rb b/lib/sync.rb
index 1cf70a6..6d79cc2 100644
--- a/lib/sync.rb
+++ b/lib/sync.rb
@@ -297,8 +297,8 @@ module Sync_m
private :sync_try_lock_sub
def sync_synchronize(mode = EX)
+ sync_lock(mode)
begin
- sync_lock(mode)
yield
ensure
sync_unlock