From 5a5ff094101d63935f7fc65c124b3e56d553522d Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Wed, 14 May 2025 13:20:21 -0500 Subject: Start reimplementing some of the earlier concurrent queue code --- src/threadpool.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/threadpool.h') diff --git a/src/threadpool.h b/src/threadpool.h index bd1b787..db6fa2e 100644 --- a/src/threadpool.h +++ b/src/threadpool.h @@ -12,11 +12,9 @@ task * task_init(task_callback cb, void *arg); void task_free(task *ts); int task_fire(task *ts); -cqueue * cqueue_init(int mtx_type); +cqueue * cqueue_init(); +void cqueue_cancel(cqueue * const cq); +void cqueue_free(void *cq); -void cqueue_cancel(cqueue *cq); -void cqueue_free(cqueue *cq); -int cqueue_addtask(cqueue * const cq, task * const tsk); -task * cqueue_waitpop(cqueue * const cq); #endif \ No newline at end of file -- cgit v1.2.3