about summary refs log tree commit homepage
path: root/lib/rainbows/thread_pool.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-27 02:59:10 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-27 02:59:10 +0000
commit2d25a86d1d17bd966eea59e5666e41d9da562811 (patch)
treee1fcd2dc5367d45667eebd4d51f28d47549310d4 /lib/rainbows/thread_pool.rb
parenta3d3d13711869d420b4473d492bd788ebe493053 (diff)
downloadrainbows-2d25a86d1d17bd966eea59e5666e41d9da562811.tar.gz
No point in waking up when our ticker runs in a separate
thread.
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 f6420ae..f243dc5 100644
--- a/lib/rainbows/thread_pool.rb
+++ b/lib/rainbows/thread_pool.rb
@@ -54,7 +54,7 @@ module Rainbows::ThreadPool
       # all working off the same socket could be a thundering herd
       # problem.  On the other hand, a thundering herd may not
       # even incur as much overhead as an extra Mutex#synchronize
-      ret = IO.select(LISTENERS, nil, nil, 1) and ret[0].each do |s|
+      ret = select(LISTENERS) and ret[0].each do |s|
         s = s.kgio_tryaccept and process_client(s)
       end
     rescue Errno::EINTR