aboutsummaryrefslogtreecommitdiff
path: root/tpool.h
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-12-16 13:53:35 +0800
committerGuangxiong Lin <[email protected]>2022-12-16 13:53:35 +0800
commit7369505397cdfddf0883e2c24e1652df8bd488fe (patch)
treee961bd1bba0276e2c5f523bf12663b34983c9e51 /tpool.h
parent49839c88a98d3798f7b18c58f54f26f36cacff38 (diff)
downloadtinyserver-7369505397cdfddf0883e2c24e1652df8bd488fe.tar.gz
tinyserver-7369505397cdfddf0883e2c24e1652df8bd488fe.tar.bz2
tinyserver-7369505397cdfddf0883e2c24e1652df8bd488fe.zip
Refactor file structure
Diffstat (limited to 'tpool.h')
-rw-r--r--tpool.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/tpool.h b/tpool.h
deleted file mode 100644
index e1079ef..0000000
--- a/tpool.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdbool.h>
-#include <stdlib.h>
-
-#ifndef __TPOOL_H
-#define __TPOOL_H
-
-struct tpool;
-typedef struct tpool tpool_t;
-
-extern tpool_t *tpool;
-
-typedef void (*thread_func_t)(void *arg);
-
-tpool_t *tpool_create(size_t num);
-void tpool_destroy(tpool_t *tp);
-
-bool tpool_add_work(tpool_t *tp, thread_func_t func, void *arg);
-void tpool_wait(tpool_t *tp);
-
-#endif