fiber/*: more efficient keepalive_timeout expiry
commit40c22b3f0a2ace6e4b51a39624ac5ed5ee3d0162
authorEric Wong <normalperson@yhbt.net>
Mon, 27 Dec 2010 03:56:30 +0000 (27 03:56 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 27 Dec 2010 04:05:18 +0000 (27 04:05 +0000)
treeb4a5d4b5aa8bbec9851bbe77a5e524d614e30856
parentabb3f7e057bd5fb0aa97cae1410ce2f55ba12b9c
fiber/*: more efficient keepalive_timeout expiry

We can use the same interface as Rainbows::Fiber.sleep to avoid
blindly waking up readers at ever scheduler invocation.
lib/rainbows/fiber/base.rb
lib/rainbows/fiber/io.rb
lib/rainbows/fiber/io/methods.rb
lib/rainbows/timed_read.rb