summaryrefslogtreecommitdiff
path: root/src/main.c
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/main.c
parent39c3fa785cafd5fa9b75bfbf92d7a702310ba480 (diff)
Stop threadpool from crashing
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
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() {
23 threadpool *tp = threadpool_init(2); 23 threadpool *tp = threadpool_init(2);
24 task *tsk = task_init(testcb, "This is some data"); 24 task *tsk = task_init(testcb, "This is some data");
25 threadpool_addtask(tp, tsk); 25 threadpool_addtask(tp, tsk);
26 threadpool_join(tp);
26 threadpool_free(tp); 27 threadpool_free(tp);
27 28
28 return 0; 29 return 0;