about summary refs log tree commit homepage
path: root/lib/rainbows/writer_thread_pool.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_pool.rb
parent4ee6e0dafeb1b7af28fa90ae27c1a1a04aa8e852 (diff)
downloadrainbows-894cb73887c106acc793f0317ee849ae215ead56.tar.gz
kgio_trywrite is superior if it is available.
Diffstat (limited to 'lib/rainbows/writer_thread_pool.rb')
-rw-r--r--lib/rainbows/writer_thread_pool.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/rainbows/writer_thread_pool.rb b/lib/rainbows/writer_thread_pool.rb
index 335a901..a8ffd7d 100644
--- a/lib/rainbows/writer_thread_pool.rb
+++ b/lib/rainbows/writer_thread_pool.rb
@@ -29,10 +29,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
@@ -41,8 +37,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 write(buf)