xepoll_thread_spawn: initial implementation
[rainbows.git] / lib / rainbows / xepoll_thread_spawn.rb
blob6e6ec5be17d9f3912e833097a2e89f9e21251a1d
1 # -*- encoding: binary -*-
3 module Rainbows::XEpollThreadSpawn
4   include Rainbows::Base
6   def init_worker_process(worker)
7     super
8     require "rainbows/xepoll_thread_spawn/client"
9     Rainbows::Client.__send__ :include, Client
10   end
12   def worker_loop(worker) # :nodoc:
13     init_worker_process(worker)
14     Client.loop
15   end
16 end