Parent

ReentrantMutex


Public Class Methods

new() click to toggle source
     # File lib/logging/utils.rb, line 209
209:   def initialize
210:     super
211:     @locker = nil
212:   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
216:   def synchronize
217:     if @locker == Thread.current
218:       yield
219:     else
220:       original_synchronize {
221:         begin
222:           @locker = Thread.current
223:           yield
224:         ensure
225:           @locker = nil
226:         end
227:       }
228:     end
229:   end
Also aliased as: original_synchronize

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.