about summary refs log tree commit homepage
path: root/lib/rainbows/thread_pool.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-04 01:43:34 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-04 23:05:04 -0800
commit8f65503d27f9935ac09d8a7a8543f9a57b5de63b (patch)
treed79bce4cf9f7e64df7b804522f66602167759c7c /lib/rainbows/thread_pool.rb
parenta59778612a3b651d4a59f37ecfdbba606b4263a6 (diff)
downloadrainbows-8f65503d27f9935ac09d8a7a8543f9a57b5de63b.tar.gz
Like the rest of the concurrency models.  This gives us
more flexibility in case a process-wide blocking operation
started during an "unlucky" period when the join timeout
was about to expire.
Diffstat (limited to 'lib/rainbows/thread_pool.rb')
-rw-r--r--lib/rainbows/thread_pool.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb
index 6556164..280ba40 100644
--- a/lib/rainbows/thread_pool.rb
+++ b/lib/rainbows/thread_pool.rb
@@ -34,7 +34,7 @@ module Rainbows
         pool.each do |thr|
           worker.tmp.chmod(m = 0 == m ? 1 : 0)
           # if any worker dies, something is serious wrong, bail
-          thr.join(timeout) and break
+          thr.join(1) and break
         end
       end
       join_threads(pool, worker)