about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/unicorn.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 4171d3f..86458ac 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -61,7 +61,13 @@ module Unicorn
       0 => $0.dup,
     }
 
+    # This class and its members can be considered a stable interface
+    # and will not change in a backwards-incompatible fashion between
+    # releases of Unicorn.  You may need to access it in the
+    # before_fork/after_fork hooks.  See the Unicorn::Configurator RDoc
+    # for examples.
     class Worker < Struct.new(:nr, :tmp)
+
       # worker objects may be compared to just plain numbers
       def ==(other_nr)
         self.nr == other_nr