2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 9bdcad8a authored by Benedikt Zoennchen's avatar 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
...@@ -279,6 +279,7 @@ public class OptimalStepsModel implements MainModel, PotentialFieldModel { ...@@ -279,6 +279,7 @@ public class OptimalStepsModel implements MainModel, PotentialFieldModel {
@Override @Override
public void postLoop(final double simTimeInSec) { public void postLoop(final double simTimeInSec) {
updateSchemeOSM.shutdown();
} }
@Override @Override
......
...@@ -117,4 +117,8 @@ public interface UpdateSchemeOSM extends DynamicElementRemoveListener<Pedestrian ...@@ -117,4 +117,8 @@ public interface UpdateSchemeOSM extends DynamicElementRemoveListener<Pedestrian
topography.moveElement(pedestrian, from); topography.moveElement(pedestrian, from);
} }
} }
default void shutdown() {
}
} }
...@@ -230,4 +230,9 @@ public class UpdateSchemeParallel implements UpdateSchemeOSM { ...@@ -230,4 +230,9 @@ public class UpdateSchemeParallel implements UpdateSchemeOSM {
@Override @Override
public void elementRemoved(Pedestrian element) {} public void elementRemoved(Pedestrian element) {}
@Override
public void shutdown() {
executorService.shutdown();
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment