Method: Fairy::Node#initialize
- Defined in:
- lib/fairy/node.rb
#initialize ⇒ Node
Returns a new instance of Node.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fairy/node.rb', line 24 def initialize @id = nil @addr = nil @logger = nil @processor_seq = -1 @processor_seq_mutex = Mutex.new @processors = [] @processors_mutex = Mutex.new @processors_cv = XThread::ConditionVariable.new @active_processors = {} @active_processors_mutex = Mutex.new @active_processors_cv = XThread::ConditionVariable.new end |