Class: Rbgo::CoRun::Scheduler
- Inherits:
-
Object
- Object
- Rbgo::CoRun::Scheduler
- Includes:
- Singleton
- Defined in:
- lib/rbgo/corun.rb
Instance Attribute Summary collapse
-
#num_thread ⇒ Object
Returns the value of attribute num_thread.
Instance Method Summary collapse
Instance Attribute Details
#num_thread ⇒ Object
Returns the value of attribute num_thread.
41 42 43 |
# File 'lib/rbgo/corun.rb', line 41 def num_thread @num_thread end |
Instance Method Details
#schedule(routine) ⇒ Object
178 179 180 181 |
# File 'lib/rbgo/corun.rb', line 178 def schedule(routine) task_queue << routine nil end |