diff options
| author | @syxhe <https://t.me/syxhe> | 2025-04-17 21:32:35 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-04-17 21:32:35 -0500 |
| commit | 9bd10281119a28323ddd05bd13827bceb553cc56 (patch) | |
| tree | 54bd1701fe006810c7097808021505bec0c05c00 /src/threadpool.h | |
| parent | 18811c585d5ff1285446d3eee301e2139dc1a60b (diff) | |
Start work on implementing a threadpool
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 | ||
