@@ -32,8 +32,9 @@ mutable struct VariableNodeData{T<:InferenceVariable}
32
32
dontmargin:: Bool
33
33
solveInProgress:: Int
34
34
solvedCount:: Int
35
+ events:: Dict{Symbol,Threads.Condition}
35
36
VariableNodeData {T} () where {T <: InferenceVariable } =
36
- new {T} (zeros (1 ,1 ), zeros (1 ,1 ), Symbol[], Int[], 0 , false , :NOTHING , Symbol[], T (), false , 0.0 , false , false , 0 , 0 )
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} () )
37
38
VariableNodeData {T} (val:: Array{Float64,2} ,
38
39
bw:: Array{Float64,2} ,
39
40
BayesNetOutVertIDs:: Array{Symbol,1} ,
@@ -47,11 +48,12 @@ mutable struct VariableNodeData{T<:InferenceVariable}
47
48
ismargin:: Bool ,
48
49
dontmargin:: Bool ,
49
50
solveInProgress:: Int = 0 ,
50
- solvedCount:: Int = 0 ) where T <: InferenceVariable =
51
+ solvedCount:: Int = 0 ,
52
+ events:: Dict{Symbol,Threads.Condition} = Dict {Symbol,Threads.Condition} ()) where T <: InferenceVariable =
51
53
new {T} (val,bw,BayesNetOutVertIDs,dimIDs,dims,
52
54
eliminated,BayesNetVertID,separator,
53
55
softtype:: T ,initialized,inferdim,ismargin,
54
- dontmargin, solveInProgress, solvedCount)
56
+ dontmargin, solveInProgress, solvedCount, events )
55
57
end
56
58
57
59
# #------------------------------------------------------------------------------
0 commit comments