Method: ProcessShared::Monitor#lock

Defined in:
lib/process_shared/monitor.rb

#lockObject



11
12
13
14
15
16
17
# File 'lib/process_shared/monitor.rb', line 11

def lock
  if locked_by == ::Process.pid
    @lock_count += 1
  else
    super
  end
end