diff options
author | Stefan Zabka <zabkaste@hu-berlin.de> | 2020-06-10 17:10:02 +0200 |
---|---|---|
committer | Stefan Zabka <zabkaste@hu-berlin.de> | 2020-06-10 17:10:02 +0200 |
commit | 47aaae2c42d554963fb811b68fdf28c9743598e8 (patch) | |
tree | c5c75adf2633f17b4f738a692273d6b92d362a7a /04_exercise/threadpool.c | |
parent | 9eb2eddf718bacb968733be6c07dae40bec28256 (diff) | |
download | betriebssysteme-47aaae2c42d554963fb811b68fdf28c9743598e8.tar.gz betriebssysteme-47aaae2c42d554963fb811b68fdf28c9743598e8.zip |
Starting threadpool
Diffstat (limited to '04_exercise/threadpool.c')
-rw-r--r-- | 04_exercise/threadpool.c | 23 |
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) {} |