From 8f65503d27f9935ac09d8a7a8543f9a57b5de63b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 4 Nov 2009 01:43:34 -0800 Subject: thread_pool: update fchmod heartbeat every second 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. --- lib/rainbows/thread_pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-24-ge0c7