Class: RedisQueuedLocks::Utilities::Lock Private
- Inherits:
-
Object
- Object
- RedisQueuedLocks::Utilities::Lock
- Defined in:
- lib/redis_queued_locks/utilities/lock.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #initialize ⇒ void constructor private
- #synchronize { ... } ⇒ Any private
Constructor Details
#initialize ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/redis_queued_locks/utilities/lock.rb', line 11 def initialize @lock = ::Monitor.new end |
Instance Method Details
#synchronize { ... } ⇒ Any
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/redis_queued_locks/utilities/lock.rb', line 22 def synchronize(&block) @lock.synchronize(&block) end |