Method: Pthread::Pthread#initialize

Defined in:
lib/pthread/pthread.rb

#initialize(job) ⇒ Pthread

Returns a new instance of Pthread.



30
31
32
# File 'lib/pthread/pthread.rb', line 30

def initialize(job)
  @@ts.write([self.object_id, job[:queue], job[:code], job[:context]])
end