diff options
| 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 |
| commit | db6aacd22f5c43cc6ea45e6c07bf962859ebac8d (patch) | |
| tree | 928324c6c344429e682a7422d19b01c8300103be /src/threadpool.h | |
| parent | 39c3fa785cafd5fa9b75bfbf92d7a702310ba480 (diff) | |
Stop threadpool from crashing
Diffstat (limited to 'src/threadpool.h')
| -rw-r--r-- | src/threadpool.h | 1 |
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); | |||
| 25 | threadpool * threadpool_init(int threads); | 25 | threadpool * threadpool_init(int threads); |
| 26 | void threadpool_free(threadpool *tp); | 26 | void threadpool_free(threadpool *tp); |
| 27 | int threadpool_addtask(threadpool * const tp, task * const task); | 27 | int threadpool_addtask(threadpool * const tp, task * const task); |
| 28 | int threadpool_join(const threadpool * const tp); | ||
| 28 | 29 | ||
| 29 | typedef struct mtxp mtxpair; | 30 | typedef struct mtxp mtxpair; |
| 30 | mtxpair * mtxpair_init(void * const data, int type); | 31 | mtxpair * mtxpair_init(void * const data, int type); |
