summaryrefslogtreecommitdiffstats
path: root/04_exercise/threadpool.h
diff options
context:
space:
mode:
Diffstat (limited to '04_exercise/threadpool.h')
-rw-r--r--04_exercise/threadpool.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/04_exercise/threadpool.h b/04_exercise/threadpool.h
index 1b5d64d..f73e36c 100644
--- a/04_exercise/threadpool.h
+++ b/04_exercise/threadpool.h
@@ -4,8 +4,6 @@
#include <stdatomic.h>
#include <stddef.h>
-
-
/**@brief Funktionszeiger auf eine asynchron auszuführende Funktion.
*
* Der Parameter kann zur Übergabe von Argumenten und den Rückgabewerten
@@ -108,7 +106,7 @@ extern void tpAwait(Future *future);
} \
static inline NAME ## _fut NAME ## Future(ARG arg) { \
return (NAME ## _fut) { \
- .fut = { .fn = &NAME ## Thunk }, \
+ .fut = { .fn = &NAME ## Thunk, .status=FUT_WAITING}, \
.arg = arg \
}; \
} \