Skip to content

Commit 992d850

Browse files
authored
Merge pull request #310 from JuliaRobotics/feature/20Q1/VNDCondition
Add event::Threads.Condition to VND
2 parents c1aa69e + feb7a48 commit 992d850

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
- neo4j
1313

1414
julia:
15-
- 1.0
15+
- 1.2
1616
- 1.4
1717
- nightly
1818

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Neo4j = "2"
3131
Reexport = "0.2, 0.3, 0.4, 0.5, 1"
3232
Requires = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 1"
3333
Unmarshal = "0.3"
34-
julia = "0.7, 1"
34+
julia = "1.2"
3535

3636
[extras]
3737
GraphPlot = "a2cc645c-3eea-5389-862e-a155d0052231"

src/entities/DFGVariable.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ mutable struct VariableNodeData{T<:InferenceVariable}
3232
dontmargin::Bool
3333
solveInProgress::Int
3434
solvedCount::Int
35+
events::Dict{Symbol,Threads.Condition}
3536
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}())
3738
VariableNodeData{T}(val::Array{Float64,2},
3839
bw::Array{Float64,2},
3940
BayesNetOutVertIDs::Array{Symbol,1},
@@ -47,11 +48,12 @@ mutable struct VariableNodeData{T<:InferenceVariable}
4748
ismargin::Bool,
4849
dontmargin::Bool,
4950
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 =
5153
new{T}(val,bw,BayesNetOutVertIDs,dimIDs,dims,
5254
eliminated,BayesNetVertID,separator,
5355
softtype::T,initialized,inferdim,ismargin,
54-
dontmargin, solveInProgress, solvedCount)
56+
dontmargin, solveInProgress, solvedCount, events)
5557
end
5658

5759
##------------------------------------------------------------------------------

0 commit comments

Comments
 (0)