Method: Bosh::ThreadPool#resume
- Defined in:
- lib/common/thread_pool.rb
#resume ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/common/thread_pool.rb', line 33 def resume @lock.synchronize do @state = :open [@available_threads, @actions.size].min.times do @available_threads -= 1 create_thread end end end |