Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
vadere
vadere
Commits
9bdcad8a
Commit
9bdcad8a
authored
Dec 11, 2019
by
Benedikt Zoennchen
Browse files
shutdown executor service for the parallel update scheme in the post loop method.
parent
e9b47e53
Pipeline
#194092
passed with stages
in 119 minutes and 49 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
VadereSimulator/src/org/vadere/simulator/models/osm/OptimalStepsModel.java
View file @
9bdcad8a
...
...
@@ -279,6 +279,7 @@ public class OptimalStepsModel implements MainModel, PotentialFieldModel {
@Override
public
void
postLoop
(
final
double
simTimeInSec
)
{
updateSchemeOSM
.
shutdown
();
}
@Override
...
...
VadereSimulator/src/org/vadere/simulator/models/osm/updateScheme/UpdateSchemeOSM.java
View file @
9bdcad8a
...
...
@@ -117,4 +117,8 @@ public interface UpdateSchemeOSM extends DynamicElementRemoveListener<Pedestrian
topography
.
moveElement
(
pedestrian
,
from
);
}
}
default
void
shutdown
()
{
}
}
VadereSimulator/src/org/vadere/simulator/models/osm/updateScheme/UpdateSchemeParallel.java
View file @
9bdcad8a
...
...
@@ -230,4 +230,9 @@ public class UpdateSchemeParallel implements UpdateSchemeOSM {
@Override
public
void
elementRemoved
(
Pedestrian
element
)
{}
@Override
public
void
shutdown
()
{
executorService
.
shutdown
();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment