From 9bd10281119a28323ddd05bd13827bceb553cc56 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Thu, 17 Apr 2025 21:32:35 -0500 Subject: Start work on implementing a threadpool --- src/threadpool.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/threadpool.h (limited to 'src/threadpool.h') 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 @@ +#ifndef __VXGG_REWRITE___THREADPOOL_H___13601325413136___ +#define __VXGG_REWRITE___THREADPOOL_H___13601325413136___ + +#include + +typedef struct mtxp mtxpair; +mtxpair * mtxpair_init(void * const data, int type); +void mtxpair_free(mtxpair *mp); +int mtxpair_setdata(mtxpair * const mp, void * const data); + +int thrd_createwmx(thrd_t * const thr, thrd_start_t func, mtxpair * const mtxd); + +#endif \ No newline at end of file -- cgit v1.2.3