diff options
author | Eric Wong <e@yhbt.net> | 2010-08-25 13:58:11 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-08-26 08:47:36 +0000 |
commit | 47e1ee2d90161abf92ce14562bf508398fdfa6c9 (patch) | |
tree | d4fb816d9874ec0b0bdfd285e9ca10e4f17d0227 /lib/rainbows/fiber | |
parent | bd3ed0b04f826b20cce83f9b77fc13c0eefd3902 (diff) | |
download | rainbows-47e1ee2d90161abf92ce14562bf508398fdfa6c9.tar.gz |
Trying to avoid adding singleton methods since it's too easily accessible by the public and not needed by the general public. This also allows us (or just Zbatery) to more easily add support systems without FD_CLOEXEC or fcntl, and also to optimize away a fcntl call for systems that inherit FD_CLOEXEC.
Diffstat (limited to 'lib/rainbows/fiber')
-rw-r--r-- | lib/rainbows/fiber/rev.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/fiber/rev.rb b/lib/rainbows/fiber/rev.rb index c23d844..632b562 100644 --- a/lib/rainbows/fiber/rev.rb +++ b/lib/rainbows/fiber/rev.rb @@ -54,6 +54,7 @@ module Rainbows::Fiber include Rainbows include Rainbows::Const include Rainbows::Response + include Rainbows::Acceptor FIO = Rainbows::Fiber::IO def to_io @@ -72,7 +73,7 @@ module Rainbows::Fiber def on_readable return if G.cur >= MAX - c = Rainbows.accept(@io) and ::Fiber.new { process(c) }.resume + c = accept(@io) and ::Fiber.new { process(c) }.resume end def process(io) |