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
@controller_seq = -1
@controller_seq_mutex = Mutex.new
@controllers = {}
@controllers_mutex = Mutex.new
@controllers_cv = XThread::ConditionVariable.new
@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
|