Skip to content
Browse files

add locking wrappers in ThreadSafe

  • Loading branch information...
1 parent ad051d1 commit 1e135fd7b600ccd4e7ff7c06d520ce55936ce75a @tmm1 committed Nov 28, 2012
Showing with 18 additions and 0 deletions.
  1. +18 −0 lib/dalli/options.rb
View
18 lib/dalli/options.rb
@@ -31,6 +31,24 @@ def close
end
end
+ def multi_response_start
+ @lock.synchronize do
+ super
+ end
+ end
+
+ def multi_response_nonblock
+ @lock.synchronize do
+ super
+ end
+ end
+
+ def multi_response_abort
+ @lock.synchronize do
+ super
+ end
+ end
+
def lock!
@lock.mon_enter
end

0 comments on commit 1e135fd

Please sign in to comment.
Something went wrong with that request. Please try again.