Class Slave::ThreadSafe
In: lib/slave.rb
lib/slave-1.2.1.rb
Parent: Object

ThreadSafe is a delegate wrapper class used for implementing gross thread safety around existing objects. when an object is wrapped with this class as

  ts = ThreadSafe.new{ AnyObject.new }

then ts can be used exactly as the normal object would have been, only all calls are now thread safe. this is the mechanism behind the ‘threadsafe’/:threadsafe keyword to Slave#initialize

Methods

class   class   ex   ex   inspect   inspect   method_missing   method_missing   new   new   respond_to?   respond_to?  

Public Class methods

Public Instance methods

[Validate]