Class: RBThreadPool::RBThreadElastic
- Inherits:
-
Object
- Object
- RBThreadPool::RBThreadElastic
- Defined in:
- lib/core/rb_elastic.rb
Instance Method Summary collapse
- #fork ⇒ Object
-
#initialize(queue, ex_quit = false, log = nil) ⇒ RBThreadElastic
constructor
A new instance of RBThreadElastic.
Constructor Details
#initialize(queue, ex_quit = false, log = nil) ⇒ RBThreadElastic
3 4 5 6 7 8 |
# File 'lib/core/rb_elastic.rb', line 3 def initialize(queue,ex_quit = false , log = nil) @queue = queue @log = log @ex_quit = ex_quit @condition = true end |
Instance Method Details
#fork ⇒ Object
10 11 12 |
# File 'lib/core/rb_elastic.rb', line 10 def fork return generate_elastic_thread end |