diff options
Diffstat (limited to '04_exercise/threadpool.c')
-rw-r--r-- | 04_exercise/threadpool.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); } |