about summary refs log tree commit homepage
path: root/lib/rainbows/writer_thread_spawn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-25 22:15:47 +0000
committerEric Wong <normalperson@yhbt.net>2010-10-25 22:15:47 +0000
commit894cb73887c106acc793f0317ee849ae215ead56 (patch)
tree9f4f4d8caff831383a46dc4eb05e71b32c6ee628 /lib/rainbows/writer_thread_spawn.rb
parent4ee6e0dafeb1b7af28fa90ae27c1a1a04aa8e852 (diff)
downloadrainbows-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.rb8
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