class ReentrantMutex
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/logging/utils.rb, line 148 def initialize super @locker = nil end
Public Instance Methods
synchronize() { || ... }
click to toggle source
# File lib/logging/utils.rb, line 155 def synchronize if @locker == Thread.current yield else original_synchronize { begin @locker = Thread.current yield ensure @locker = nil end } end end
Also aliased as: original_synchronize