diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-25 22:15:47 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-25 22:15:47 +0000 |
commit | 894cb73887c106acc793f0317ee849ae215ead56 (patch) | |
tree | 9f4f4d8caff831383a46dc4eb05e71b32c6ee628 /lib/rainbows/writer_thread_spawn.rb | |
parent | 4ee6e0dafeb1b7af28fa90ae27c1a1a04aa8e852 (diff) | |
download | rainbows-894cb73887c106acc793f0317ee849ae215ead56.tar.gz |
kgio_trywrite is superior if it is available.
Diffstat (limited to 'lib/rainbows/writer_thread_spawn.rb')
-rw-r--r-- | lib/rainbows/writer_thread_spawn.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/rainbows/writer_thread_spawn.rb b/lib/rainbows/writer_thread_spawn.rb index 6468151..c190f89 100644 --- a/lib/rainbows/writer_thread_spawn.rb +++ b/lib/rainbows/writer_thread_spawn.rb @@ -34,10 +34,6 @@ module Rainbows to_io.kgio_addr end - def readpartial(size, buf = "") - to_io.readpartial(size, buf) - end - def kgio_read(size, buf = "") to_io.kgio_read(size, buf) end @@ -46,8 +42,8 @@ module Rainbows to_io.kgio_read!(size, buf) end - def write_nonblock(buf) - to_io.write_nonblock(buf) + def kgio_trywrite(buf) + to_io.kgio_trywrite(buf) end def queue_writer |