From aff36865d5e738babdbf36f34fd0693b67bb3d90 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 29 Apr 2011 05:45:44 +0000 Subject: xepoll_thread_spawn: initial implementation Whee! This is going to be awesome. --- lib/rainbows/xepoll_thread_spawn.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/rainbows/xepoll_thread_spawn.rb (limited to 'lib/rainbows/xepoll_thread_spawn.rb') diff --git a/lib/rainbows/xepoll_thread_spawn.rb b/lib/rainbows/xepoll_thread_spawn.rb new file mode 100644 index 0000000..6e6ec5b --- /dev/null +++ b/lib/rainbows/xepoll_thread_spawn.rb @@ -0,0 +1,16 @@ +# -*- encoding: binary -*- + +module Rainbows::XEpollThreadSpawn + include Rainbows::Base + + def init_worker_process(worker) + super + require "rainbows/xepoll_thread_spawn/client" + Rainbows::Client.__send__ :include, Client + end + + def worker_loop(worker) # :nodoc: + init_worker_process(worker) + Client.loop + end +end -- cgit v1.2.3-24-ge0c7