From 25934e17940e9de7ab66727a14827785e65f053b Mon Sep 17 00:00:00 2001
From: Christian Dietrich <christian.dietrich@informatik.uni-erlangen.de>
Date: Wed, 19 Oct 2016 15:11:58 +0200
Subject: [PATCH] bench-timing: aborted computation clear event before sleeping

---
 app/benchmark/timing/aborted-computation.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/benchmark/timing/aborted-computation.cc b/app/benchmark/timing/aborted-computation.cc
index 74b22e6..54bdca7 100644
--- a/app/benchmark/timing/aborted-computation.cc
+++ b/app/benchmark/timing/aborted-computation.cc
@@ -16,6 +16,7 @@ extern "C" {
     void timing_entry() {
         timing_start(0);
         ActivateTask(Computation);
+        ClearEvent(ComputationFinished | ComputationAborted);
         WaitEvent(ComputationFinished | ComputationAborted);
         timing_end(TIMING_POINT_NO_INTERRUPTS_IN_BLOCK | 0);
     }
-- 
GitLab