about summary refs log tree commit homepage
path: root/lib/rainbows.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-27 07:18:49 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-27 07:34:21 +0000
commit3a250fcfb9fcfa0ab3a8105821e670563025faa4 (patch)
tree2105314936e65bd9a9a18f1f7908ba99f221bbd9 /lib/rainbows.rb
parent2873361069dc2f8c793875316a0a2c9b8fa54761 (diff)
downloadrainbows-3a250fcfb9fcfa0ab3a8105821e670563025faa4.tar.gz
Cool.io is the new name for Rev.  We'll continue to support Rev
until Cool.io breaks backwards compatibility.  Rev may not be
supported if Cool.io is.
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r--lib/rainbows.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb
index 1f8b252..dd5a5b2 100644
--- a/lib/rainbows.rb
+++ b/lib/rainbows.rb
@@ -60,7 +60,7 @@ module Rainbows
       case G.server.use
       when :FiberPool, :FiberSpawn
         Rainbows::Fiber.sleep(nr)
-      when :RevFiberSpawn
+      when :RevFiberSpawn, :CoolioFiberSpawn
         Rainbows::Fiber::Rev::Sleeper.new(nr)
       when :Revactor
         Actor.sleep(nr)
@@ -98,12 +98,16 @@ module Rainbows
     :Rev => 50,
     :RevThreadSpawn => 50,
     :RevThreadPool => 50,
+    :RevFiberSpawn => 50,
+    :Coolio => 50,
+    :CoolioThreadSpawn => 50,
+    :CoolioThreadPool => 50,
+    :CoolioFiberSpawn => 50,
     :EventMachine => 50,
     :FiberSpawn => 50,
     :FiberPool => 50,
     :ActorSpawn => 50,
     :NeverBlock => 50,
-    :RevFiberSpawn => 50,
   }.each do |model, _|
     u = model.to_s.gsub(/([a-z0-9])([A-Z0-9])/) { "#{$1}_#{$2.downcase!}" }
     autoload model, "rainbows/#{u.downcase!}"