summaryrefslogtreecommitdiffstats
path: root/04_exercise/threadpool.c
diff options
context:
space:
mode:
Diffstat (limited to '04_exercise/threadpool.c')
-rw-r--r--04_exercise/threadpool.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/04_exercise/threadpool.c b/04_exercise/threadpool.c
new file mode 100644
index 0000000..3172147
--- /dev/null
+++ b/04_exercise/threadpool.c
@@ -0,0 +1,23 @@
+#include "threadpool.h"
+
+#include <stdlib.h>
+#include <unistd.h>
+#include <pthread.h>
+
+typedef struct ThreadPool {
+ /* TODO: benötigte Attribute hinzufügen */
+} ThreadPool;
+
+/* TODO: interne, globale Variablen hinzufügen */
+
+/* TODO: interne Hilfsfunktionen hinzufügen */
+
+int tpInit(size_t size) {
+ return 0;
+}
+
+void tpRelease(void) {}
+
+void tpAsync(Future *future) {}
+
+void tpAwait(Future *future) {}