From 5170b767ef1bbc94554920959d1792fce43899a9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 10 Apr 2011 07:42:31 +0000 Subject: thread_pool: get used of dead thread_join method It's in the JoinThreads module now --- lib/rainbows/thread_pool.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib/rainbows/thread_pool.rb') diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb index b7860eb..63d57cb 100644 --- a/lib/rainbows/thread_pool.rb +++ b/lib/rainbows/thread_pool.rb @@ -59,17 +59,4 @@ module Rainbows::ThreadPool Rainbows::Error.listen_loop(e) end while Rainbows.alive end - - def join_threads(threads) # :nodoc: - Rainbows.quit! - threads.delete_if do |thr| - Rainbows.tick - begin - thr.run - thr.join(0.01) - rescue - true - end - end until threads.empty? - end end -- cgit v1.2.3-24-ge0c7