class Synapse::ProcessManager::LockManager

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.

Public Instance Methods

obtain_lock(process_id) click to toggle source

Obtains a lock for a process with the given identifier, blocking if necessary

@param [String] process_id @return [undefined]

# File lib/synapse/process_manager/lock_manager.rb, line 12
def obtain_lock(process_id); end
release_lock(process_id) click to toggle source

Releases the lock for a process with the given identifier

@raise [ThreadError] If thread didn't previously hold the lock @param [String] process_id @return [undefined]

# File lib/synapse/process_manager/lock_manager.rb, line 19
def release_lock(process_id); end