Method: Bosh::ThreadPool#shutdown

Defined in:
lib/common/thread_pool.rb

#shutdownObject



111
112
113
114
115
116
117
118
119
120
# File 'lib/common/thread_pool.rb', line 111

def shutdown
  return if @state == :closed
  @logger.debug('Shutting down pool')
  @lock.synchronize do
    return if @state == :closed
    @state = :closed
    @actions.clear
  end
  @threads.each { |t| t.join }
end