Method: ProcessShared::Monitor#unlock
- Defined in:
- lib/process_shared/monitor.rb
#unlock ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/process_shared/monitor.rb', line 19 def unlock if locked_by == ::Process.pid if @lock_count > 0 @lock_count -= 1 else super end else super end end |