about summary refs log tree commit homepage
path: root/lib/rainbows/thread_pool.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-04-10 07:42:31 +0000
committerEric Wong <normalperson@yhbt.net>2011-04-10 07:42:31 +0000
commit5170b767ef1bbc94554920959d1792fce43899a9 (patch)
tree7837183de8203eafeeaadef727567ad35a0172eb /lib/rainbows/thread_pool.rb
parent777beb3e27785d2da2865cb5fc0d43f1c158cb5e (diff)
downloadrainbows-5170b767ef1bbc94554920959d1792fce43899a9.tar.gz
It's in the JoinThreads module now
Diffstat (limited to 'lib/rainbows/thread_pool.rb')
-rw-r--r--lib/rainbows/thread_pool.rb13
1 files changed, 0 insertions, 13 deletions
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