summaryrefslogtreecommitdiffstats
path: root/04_exercise/threadpool.h
diff options
context:
space:
mode:
authorStefan Zabka <zabkaste@hu-berlin.de>2020-06-11 23:24:02 +0200
committerStefan Zabka <zabkaste@hu-berlin.de>2020-06-11 23:24:02 +0200
commitb9771b85d4f543af78465985e6350c0ca57f4c70 (patch)
tree012838e8e3a66d17b7220efdefd3ae2a17fed217 /04_exercise/threadpool.h
parent7ecbcce58aa7a33915a150ad3f48924c1158779d (diff)
downloadbetriebssysteme-b9771b85d4f543af78465985e6350c0ca57f4c70.tar.gz
betriebssysteme-b9771b85d4f543af78465985e6350c0ca57f4c70.zip
Broken Mess
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 \
}; \
} \