diff options
Diffstat (limited to 'src/threadpool.h')
| -rw-r--r-- | src/threadpool.h | 13 |
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 | |||
| 6 | typedef struct mtxp mtxpair; | ||
| 7 | mtxpair * mtxpair_init(void * const data, int type); | ||
| 8 | void mtxpair_free(mtxpair *mp); | ||
| 9 | int mtxpair_setdata(mtxpair * const mp, void * const data); | ||
| 10 | |||
| 11 | int thrd_createwmx(thrd_t * const thr, thrd_start_t func, mtxpair * const mtxd); | ||
| 12 | |||
| 13 | #endif \ No newline at end of file | ||
