Class: Synapse::ProcessManager::LockManager
- Inherits:
-
Object
- Object
- Synapse::ProcessManager::LockManager
- Defined in:
- lib/synapse/process_manager/lock_manager.rb
Overview
Represents a mechanism for synchronizing access to processes
This base implementation does no locking; it can be used if processes are thread safe and don’t need any additional synchronization.
Instance Method Summary collapse
-
#obtain_lock(process_id) ⇒ undefined
Obtains a lock for a process with the given identifier, blocking if necessary.
-
#release_lock(process_id) ⇒ undefined
Releases the lock for a process with the given identifier.
Instance Method Details
#obtain_lock(process_id) ⇒ undefined
Obtains a lock for a process with the given identifier, blocking if necessary
12 |
# File 'lib/synapse/process_manager/lock_manager.rb', line 12 def obtain_lock(process_id); end |
#release_lock(process_id) ⇒ undefined
Releases the lock for a process with the given identifier
19 |
# File 'lib/synapse/process_manager/lock_manager.rb', line 19 def release_lock(process_id); end |