From 32722173a6138633c9b255f550800ca61a27aba3 Mon Sep 17 00:00:00 2001 From: Nelson Tavares de Sousa <ntd@informatik.uni-kiel.de> Date: Thu, 16 Apr 2015 16:41:31 +0200 Subject: [PATCH] added "hidden" method for analysis interrupt --- src/main/java/teetime/framework/Analysis.java | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/main/java/teetime/framework/Analysis.java b/src/main/java/teetime/framework/Analysis.java index 711c5c90..9579e00d 100644 --- a/src/main/java/teetime/framework/Analysis.java +++ b/src/main/java/teetime/framework/Analysis.java @@ -256,19 +256,20 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught } } - // public void abortEventually() { - // for (Thread thread : this.finiteProducerThreads) { - // thread.interrupt(); - // } - // - // for (Thread thread : this.consumerThreads) { - // thread.interrupt(); - // } - // - // for (Thread thread : this.infiniteProducerThreads) { - // thread.interrupt(); - // } - // } + // TODO: implement + private void abortEventually() { + for (Thread thread : this.finiteProducerThreads) { + thread.interrupt(); + } + + for (Thread thread : this.consumerThreads) { + thread.interrupt(); + } + + for (Thread thread : this.infiniteProducerThreads) { + thread.interrupt(); + } + } /** * This method will start the Analysis and block until it is finished. -- GitLab