summaryrefslogtreecommitdiff
path: root/src/threadpool.h
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2025-04-22 18:53:20 -0500
committer@syxhe <https://t.me/syxhe>2025-04-22 18:53:20 -0500
commitdb6aacd22f5c43cc6ea45e6c07bf962859ebac8d (patch)
tree928324c6c344429e682a7422d19b01c8300103be /src/threadpool.h
parent39c3fa785cafd5fa9b75bfbf92d7a702310ba480 (diff)
Stop threadpool from crashing
Diffstat (limited to 'src/threadpool.h')
-rw-r--r--src/threadpool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/threadpool.h b/src/threadpool.h
index 48ad9eb..bc3ce06 100644
--- a/src/threadpool.h
+++ b/src/threadpool.h
@@ -25,6 +25,7 @@ int cqueue_cancel(cqueue * const cq);
25threadpool * threadpool_init(int threads); 25threadpool * threadpool_init(int threads);
26void threadpool_free(threadpool *tp); 26void threadpool_free(threadpool *tp);
27int threadpool_addtask(threadpool * const tp, task * const task); 27int threadpool_addtask(threadpool * const tp, task * const task);
28int threadpool_join(const threadpool * const tp);
28 29
29typedef struct mtxp mtxpair; 30typedef struct mtxp mtxpair;
30mtxpair * mtxpair_init(void * const data, int type); 31mtxpair * mtxpair_init(void * const data, int type);