Class: TrackingMutex

Inherits:
Mutex
  • Object
show all
Defined in:
lib/mqrpc/sizedhash.rb

Instance Method Summary collapse

Instance Method Details

#synchronize(&blk) ⇒ Object



5
6
7
8
9
# File 'lib/mqrpc/sizedhash.rb', line 5

def synchronize(&blk)
  #puts "Enter synchronize #{self} @ #{Thread.current} + #{caller[0]}"
  super { blk.call }
  #puts "Exit synchronize #{self} @ #{Thread.current} + #{caller[0]}"
end