Class: EventQ::WorkerThread
- Inherits:
-
Object
- Object
- EventQ::WorkerThread
- Defined in:
- lib/eventq/worker_status.rb
Instance Attribute Summary collapse
-
#thread ⇒ Object
readonly
This could be a string or a Thread object.
Instance Method Summary collapse
-
#initialize(thread) ⇒ WorkerThread
constructor
A new instance of WorkerThread.
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
#thread ⇒ Object (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 |