From 200f22578700b82c5a2d2052c9fda0d9e431d25f Mon Sep 17 00:00:00 2001 From: Stefan Zabka Date: Fri, 12 Jun 2020 00:05:28 +0200 Subject: THIS SHIT WORKS --- 04_exercise/threadpool.c | 4 ---- 1 file changed, 4 deletions(-) (limited to '04_exercise/threadpool.c') diff --git a/04_exercise/threadpool.c b/04_exercise/threadpool.c index 54d4448..f644412 100644 --- a/04_exercise/threadpool.c +++ b/04_exercise/threadpool.c @@ -116,10 +116,6 @@ void tpAsync(Future *future) { } void tpAwait(Future *future) { - if (atomic_load(&future->status) == FUT_DONE) { - alRemoveElem(&threadPool.al, (void *)future); - return; - } if (atomic_load(&future->status) == FUT_WAITING) { tryRunningFuture(future); } -- cgit v1.2.3-54-g00ecf