summaryrefslogtreecommitdiff
path: root/src/threadpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadpool.h')
-rw-r--r--src/threadpool.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/threadpool.h b/src/threadpool.h
new file mode 100644
index 0000000..8e3ee41
--- /dev/null
+++ b/src/threadpool.h
@@ -0,0 +1,13 @@
1#ifndef __VXGG_REWRITE___THREADPOOL_H___13601325413136___
2#define __VXGG_REWRITE___THREADPOOL_H___13601325413136___
3
4#include <threads.h>
5
6typedef struct mtxp mtxpair;
7mtxpair * mtxpair_init(void * const data, int type);
8void mtxpair_free(mtxpair *mp);
9int mtxpair_setdata(mtxpair * const mp, void * const data);
10
11int thrd_createwmx(thrd_t * const thr, thrd_start_t func, mtxpair * const mtxd);
12
13#endif \ No newline at end of file