summaryrefslogtreecommitdiffstats
path: root/04_exercise/threadpool.c
diff options
context:
space:
mode:
authorStefan Zabka <zabkaste@hu-berlin.de>2020-06-10 17:10:02 +0200
committerStefan Zabka <zabkaste@hu-berlin.de>2020-06-10 17:10:02 +0200
commit47aaae2c42d554963fb811b68fdf28c9743598e8 (patch)
treec5c75adf2633f17b4f738a692273d6b92d362a7a /04_exercise/threadpool.c
parent9eb2eddf718bacb968733be6c07dae40bec28256 (diff)
downloadbetriebssysteme-47aaae2c42d554963fb811b68fdf28c9743598e8.tar.gz
betriebssysteme-47aaae2c42d554963fb811b68fdf28c9743598e8.zip
Starting threadpool
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) {}