diff options
Diffstat (limited to 'lib/rainbows/xepoll_thread_spawn.rb')
-rw-r--r-- | lib/rainbows/xepoll_thread_spawn.rb | 16 |
1 files changed, 16 insertions, 0 deletions
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 |