Module: Fiveruns::Dash::Threads::ClassMethods

Defined in:
lib/fiveruns/dash/threads.rb

Instance Method Summary collapse

Instance Method Details

#monitorObject



13
14
15
# File 'lib/fiveruns/dash/threads.rb', line 13

def monitor
  @monitor ||= Monitor.new
end

#sync(&block) ⇒ Object



17
18
19
# File 'lib/fiveruns/dash/threads.rb', line 17

def sync(&block)
  monitor.synchronize(&block)
end