Method: Fairy::Master#initialize

Defined in:
lib/fairy/master.rb

#initializeMaster



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/fairy/master.rb', line 24

def initialize

#       @clients = {}
#       @clients_mutex = Mutex.new
#       @clients_cv = XThread::ConditionVariable.new

  @controller_seq = -1
  @controller_seq_mutex = Mutex.new

  @controllers = {}
  @controllers_mutex = Mutex.new
  @controllers_cv = XThread::ConditionVariable.new

#      @clientds2controller = {}

  @nodes = {}
  @nodes_mutex = Mutex.new
  @node_seq = -1

  @no_of_processors = {}
  @no_of_processors_mutex = Mutex.new

  @no_of_active_processors = {}
  @no_of_active_processors_mutex = Mutex.new
  @no_of_active_processors_cv = XThread::ConditionVariable.new

end