Class: Osbourne::Locks::Memory
- Inherits:
-
Object
- Object
- Osbourne::Locks::Memory
- Includes:
- Base
- Defined in:
- lib/osbourne/locks/memory.rb
Constant Summary
Constants included from Base
Base::DEFAULT_HARD_TTL, Base::DEFAULT_SOFT_TTL
Instance Attribute Summary
Attributes included from Base
Class Method Summary collapse
Methods included from Base
#hard_lock, #initialize, #soft_lock, #try_with_lock, #unlock
Class Method Details
.semaphore ⇒ Object
15 16 17 |
# File 'lib/osbourne/locks/memory.rb', line 15 def semaphore @semaphore ||= Mutex.new end |
.store ⇒ Object
11 12 13 |
# File 'lib/osbourne/locks/memory.rb', line 11 def store @store ||= {} end |