From 39c3fa785cafd5fa9b75bfbf92d7a702310ba480 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Tue, 22 Apr 2025 16:59:33 -0500 Subject: Yay segfault --- src/threadpool.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/threadpool.h') diff --git a/src/threadpool.h b/src/threadpool.h index c28f03a..48ad9eb 100644 --- a/src/threadpool.h +++ b/src/threadpool.h @@ -22,13 +22,14 @@ int cqueue_trypop(cqueue * const cq, task **ret); int cqueue_waitpop(cqueue * const cq, task **ret); int cqueue_cancel(cqueue * const cq); +threadpool * threadpool_init(int threads); +void threadpool_free(threadpool *tp); +int threadpool_addtask(threadpool * const tp, task * const task); + 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); -int cqueue_cancel(cqueue * const cq); - #endif \ No newline at end of file -- cgit v1.2.3