about summary refs log tree commit homepage
path: root/lib/rainbows/rev_thread_spawn/client.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-26 22:48:33 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-26 22:48:33 +0000
commita50c9d312b9d5274a95f2816b5f53a3738d0cb92 (patch)
tree266b30d91cd45a19c1867e3f8f774d355302e6cc /lib/rainbows/rev_thread_spawn/client.rb
parent6741aa27e4c35724b5306644d3a391fce415b0c7 (diff)
downloadrainbows-a50c9d312b9d5274a95f2816b5f53a3738d0cb92.tar.gz
This should make classes easier to find and hopefully make
our code easier to follow.
Diffstat (limited to 'lib/rainbows/rev_thread_spawn/client.rb')
-rw-r--r--lib/rainbows/rev_thread_spawn/client.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rainbows/rev_thread_spawn/client.rb b/lib/rainbows/rev_thread_spawn/client.rb
new file mode 100644
index 0000000..60afc9b
--- /dev/null
+++ b/lib/rainbows/rev_thread_spawn/client.rb
@@ -0,0 +1,8 @@
+# -*- encoding: binary -*-
+# :enddoc:
+class Rainbows::RevThreadSpawn::Client < Rainbows::Rev::ThreadClient
+  # MASTER will be set in worker_loop
+  def app_dispatch
+    Thread.new(self) { |client| MASTER << [ client, app_response ] }
+  end
+end