Method: Narou::Worker#initialize

Defined in:
lib/web/worker.rb

#initializeWorker

Returns a new instance of Worker.



14
15
16
17
18
19
20
21
22
# File 'lib/web/worker.rb', line 14

def initialize
  @queue = Queue.new
  @size = 0
  @mutex = Mutex.new
  @worker_thread = nil
  @push_server = Narou::PushServer.instance
  @cancel_signal = false
  @thread_of_block_executing = nil
end