From 534a492f2c0bcceac52a287b03dc1ff5eb0b0763 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 9 Jun 2025 15:03:19 -0500 Subject: Trim more fat, add some doxygen markup to the threadpool functions --- src/threadpool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/threadpool.c') diff --git a/src/threadpool.c b/src/threadpool.c index bd52c75..681428e 100644 --- a/src/threadpool.c +++ b/src/threadpool.c @@ -369,8 +369,10 @@ static int __CTQ_CONSUMER(void *ctq) { task_free(ctask); } - thrd_exit(1); // non-zero indicates error, -1 indicates invalid argument + thrd_exit(1); } +// TODO: Make this function return 0 or -1 depending on whether the overall ctq has been canceled or not. Canceling shouldn't +// be treated as an error int ctqueue_start(ctqueue *ctq) { if(!ctq) ERRRET(EINVAL, -1); -- cgit v1.2.3