diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -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; |
