From db6aacd22f5c43cc6ea45e6c07bf962859ebac8d Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Tue, 22 Apr 2025 18:53:20 -0500 Subject: Stop threadpool from crashing --- src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index f89a124..6af87ab 100644 --- a/src/main.c +++ b/src/main.c @@ -23,6 +23,7 @@ int main() { threadpool *tp = threadpool_init(2); task *tsk = task_init(testcb, "This is some data"); threadpool_addtask(tp, tsk); + threadpool_join(tp); threadpool_free(tp); return 0; -- cgit v1.2.3