about summary refs log tree commit homepage
path: root/lib/rainbows/xepoll_thread_spawn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-04-29 05:45:44 +0000
committerEric Wong <normalperson@yhbt.net>2011-04-29 05:45:44 +0000
commitaff36865d5e738babdbf36f34fd0693b67bb3d90 (patch)
tree24bcb22e23dc7e7c587f34bba33dfcbee8c020fb /lib/rainbows/xepoll_thread_spawn.rb
parent40cf3eb79054caa4b7d81120a736491aca8259eb (diff)
downloadrainbows-aff36865d5e738babdbf36f34fd0693b67bb3d90.tar.gz
Whee!  This is going to be awesome.
Diffstat (limited to 'lib/rainbows/xepoll_thread_spawn.rb')
-rw-r--r--lib/rainbows/xepoll_thread_spawn.rb16
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