diff options
Diffstat (limited to 'lib/rainbows/thread_spawn.rb')
-rw-r--r-- | lib/rainbows/thread_spawn.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb index 6952f26..0d4973a 100644 --- a/lib/rainbows/thread_spawn.rb +++ b/lib/rainbows/thread_spawn.rb @@ -18,6 +18,7 @@ module Rainbows module ThreadSpawn include Base + include Rainbows::Acceptor def accept_loop(klass) #:nodoc: lock = Mutex.new @@ -36,7 +37,7 @@ module Rainbows # CPU during I/O wait, CPU cycles that can be better used # by other worker _processes_. sleep(0.01) - elsif c = Rainbows.sync_accept(l) + elsif c = sync_accept(l) klass.new(c) do |c| begin lock.synchronize { G.cur += 1 } |