Class: Celluloid::Thread
Instance Attribute Summary collapse
-
#busy ⇒ Object
Returns the value of attribute busy.
Attributes inherited from Thread
Instance Method Summary collapse
- #<<(proc) ⇒ Object
-
#actor ⇒ Object
Obtain the Celluloid::Actor object for this thread.
-
#call_chain_id ⇒ Object
Obtain the call chain ID for this thread.
- #celluloid? ⇒ Boolean
-
#mailbox ⇒ Object
Obtain the Celluloid mailbox for this thread.
-
#role ⇒ Object
Obtain the role of this thread.
- #role=(role) ⇒ Object
-
#task ⇒ Object
Obtain the Celluloid task object for this thread.
Instance Attribute Details
#busy ⇒ Object
Returns the value of attribute busy.
7 8 9 |
# File 'lib/celluloid/thread.rb', line 7 def busy @busy end |
Instance Method Details
#<<(proc) ⇒ Object
38 39 40 41 |
# File 'lib/celluloid/thread.rb', line 38 def <<(proc) self[:celluloid_queue] << proc self end |
#actor ⇒ Object
Obtain the Celluloid::Actor object for this thread
19 20 21 |
# File 'lib/celluloid/thread.rb', line 19 def actor self[:celluloid_actor] end |
#call_chain_id ⇒ Object
Obtain the call chain ID for this thread
34 35 36 |
# File 'lib/celluloid/thread.rb', line 34 def call_chain_id self[:celluloid_chain_id] end |
#celluloid? ⇒ Boolean
3 4 5 |
# File 'lib/celluloid/thread.rb', line 3 def celluloid? true end |
#mailbox ⇒ Object
Obtain the Celluloid mailbox for this thread
29 30 31 |
# File 'lib/celluloid/thread.rb', line 29 def mailbox self[:celluloid_mailbox] end |
#role ⇒ Object
Obtain the role of this thread
10 11 12 |
# File 'lib/celluloid/thread.rb', line 10 def role self[:celluloid_role] end |
#role=(role) ⇒ Object
14 15 16 |
# File 'lib/celluloid/thread.rb', line 14 def role=(role) self[:celluloid_role] = role end |
#task ⇒ Object
Obtain the Celluloid task object for this thread
24 25 26 |
# File 'lib/celluloid/thread.rb', line 24 def task self[:celluloid_task] end |