Parent

ReentrantMutex


Public Class Methods

new() click to toggle source
# File lib/logging/utils.rb, line 209
def initialize
  super
  @locker = nil
end

Public Instance Methods

original_synchronize() click to toggle source
Alias for: synchronize
synchronize() click to toggle source
# File lib/logging/utils.rb, line 216
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.