Method: ALib::Logging::LoggerExt#___mutex

Defined in:
lib/alib-0.5.1/logging.rb

#___mutexObject

–}}}



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/alib-0.5.1/logging.rb', line 31

def ___mutex
#--{{{
  unless defined?(@___mutex) and @___mutex
    begin
      Thread.critical = true
      @___mutex = Sync::new unless defined?(@___mutex) and @___mutex
    ensure
      Thread.critical = false 
    end
  end
  @___mutex
#--}}}
end