class EventMachine::HotTub::Pool
Public Class Methods
new(opts={},&client_block)
click to toggle source
Calls superclass method
# File lib/em/hot_tub/pool.rb, line 8 def initialize(opts={},&client_block) super(opts, &client_block) @mutex = EM::Synchrony::Thread::Mutex.new @cond = EM::Synchrony::Thread::ConditionVariable.new @kill_reaper = false EM.add_shutdown_hook {shutdown!} unless @sessions_key end