Class: EventQ::WorkerThread

Inherits:
Object
  • Object
show all
Defined in:
lib/eventq/worker_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(thread) ⇒ WorkerThread

Returns a new instance of WorkerThread.



60
61
62
# File 'lib/eventq/worker_status.rb', line 60

def initialize(thread)
  @thread = thread
end

Instance Attribute Details

#threadObject (readonly)

This could be a string or a Thread object. When spawning forked workers, threads cannot be marshalled back to another process.



58
59
60
# File 'lib/eventq/worker_status.rb', line 58

def thread
  @thread
end