about summary refs log tree commit homepage
path: root/lib/rainbows/thread_spawn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-14 18:25:15 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-14 18:25:15 -0700
commitb14f5bcec7d9864faed7fcb06028eafe89a4a722 (patch)
treee646668dc41704beb1bcaf38c5c9c3800e5247cb /lib/rainbows/thread_spawn.rb
parent48dbd227580c592f1ae24054449b6da4490714ec (diff)
downloadrainbows-b14f5bcec7d9864faed7fcb06028eafe89a4a722.tar.gz
Diffstat (limited to 'lib/rainbows/thread_spawn.rb')
-rw-r--r--lib/rainbows/thread_spawn.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb
index f14ed1c..d002c81 100644
--- a/lib/rainbows/thread_spawn.rb
+++ b/lib/rainbows/thread_spawn.rb
@@ -2,13 +2,19 @@
 module Rainbows
 
   # Spawns a new thread for every client connection we accept().  This
-  # model is recommended for platforms where spawning threads is
-  # inexpensive.
+  # model is recommended for platforms like Ruby 1.8 where spawning new
+  # threads is inexpensive.
+  #
+  # This model should provide a high level of compatibility with all
+  # Ruby implementations, and most libraries and applications.
+  # Applications running under this model should be thread-safe
+  # but not necessarily reentrant.
   #
   # If you're connecting to external services and need to perform DNS
   # lookups, consider using the "resolv-replace" library which replaces
   # parts of the core Socket package with concurrent DNS lookup
   # capabilities
+
   module ThreadSpawn
 
     include Base