summary refs log tree commit homepage
path: root/lib/rainbows/xepoll_thread_spawn.rb
blob: ad2bdc4a0deabf9046f701a5d465b8d88d395ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- encoding: binary -*-
require "thread"
require "sleepy_penguin"
require "raindrops"

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