@@ -32,9 +32,9 @@ mutable struct VariableNodeData{T<:InferenceVariable}
32
32
dontmargin:: Bool
33
33
solveInProgress:: Int
34
34
solvedCount:: Int
35
- event :: Threads.Condition # This object is NOT thread-safe. See Threads.Condition for a thread-safe version. julia 1.2
35
+ events :: Dict{Symbol, Threads.Condition}
36
36
VariableNodeData {T} () where {T <: InferenceVariable } =
37
- new {T} (zeros (1 ,1 ), zeros (1 ,1 ), Symbol[], Int[], 0 , false , :NOTHING , Symbol[], T (), false , 0.0 , false , false , 0 , 0 , Condition ())
37
+ new {T} (zeros (1 ,1 ), zeros (1 ,1 ), Symbol[], Int[], 0 , false , :NOTHING , Symbol[], T (), false , 0.0 , false , false , 0 , 0 , Dict {Symbol,Threads. Condition} ())
38
38
VariableNodeData {T} (val:: Array{Float64,2} ,
39
39
bw:: Array{Float64,2} ,
40
40
BayesNetOutVertIDs:: Array{Symbol,1} ,
@@ -49,11 +49,11 @@ mutable struct VariableNodeData{T<:InferenceVariable}
49
49
dontmargin:: Bool ,
50
50
solveInProgress:: Int = 0 ,
51
51
solvedCount:: Int = 0 ,
52
- eventCondition :: Condition = Condition ()) where T <: InferenceVariable =
52
+ events :: Dict{Symbol,Threads. Condition} = Dict {Symbol,Threads. Condition} ()) where T <: InferenceVariable =
53
53
new {T} (val,bw,BayesNetOutVertIDs,dimIDs,dims,
54
54
eliminated,BayesNetVertID,separator,
55
55
softtype:: T ,initialized,inferdim,ismargin,
56
- dontmargin, solveInProgress, solvedCount, eventCondition )
56
+ dontmargin, solveInProgress, solvedCount, events )
57
57
end
58
58
59
59
# #------------------------------------------------------------------------------
0 commit comments