From 15631717fce044fbad2f386a7b1c7daf4bdd83d2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 21 Oct 2010 16:25:39 -0700 Subject: code shuffling for kgio Despite the large number of changes, most of it is code movement here. --- lib/rainbows/writer_thread_spawn.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/rainbows/writer_thread_spawn.rb') diff --git a/lib/rainbows/writer_thread_spawn.rb b/lib/rainbows/writer_thread_spawn.rb index dfd6c39..6468151 100644 --- a/lib/rainbows/writer_thread_spawn.rb +++ b/lib/rainbows/writer_thread_spawn.rb @@ -30,6 +30,10 @@ module Rainbows class MySocket < Struct.new(:to_io, :q, :thr) # :nodoc: all include Rainbows::Response + def kgio_addr + to_io.kgio_addr + end + def readpartial(size, buf = "") to_io.readpartial(size, buf) end -- cgit v1.2.3-24-ge0c7