class ReentrantMutex
Public Class Methods
Source
# File lib/logging/utils.rb, line 148 def initialize super @locker = nil end
Calls superclass method
Public Instance Methods
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