Class: Object

Inherits:
BasicObject
Includes:
Adhearsion::Logging::HasLogger, Adhearsion::Safely
Defined in:
lib/adhearsion/foundation/object.rb,
lib/adhearsion/foundation/thread_safety.rb,
lib/adhearsion/foundation/exception_handler.rb

Instance Method Summary collapse

Methods included from Adhearsion::Safely

#catching_standard_errors

Methods included from Adhearsion::Logging::HasLogger

#logger, #logger_id

Instance Method Details

#pb_loggerObject



9
10
11
# File 'lib/adhearsion/foundation/object.rb', line 9

def pb_logger
  logger
end

#synchronize(&block) ⇒ Object



6
7
8
9
# File 'lib/adhearsion/foundation/thread_safety.rb', line 6

def synchronize(&block)
  @mutex ||= Mutex.new
  @mutex.synchronize(&block)
end