diff --git a/example.c b/example.c index 54a3da2..39ffbe9 100644 --- a/example.c +++ b/example.c @@ -29,17 +29,17 @@ void task2(){ int main(){ puts("Making threadpool with 4 threads"); - thpool threadpool = thpool_init(4); + threadpool thpool = thpool_init(4); puts("Adding 40 tasks to threadpool"); int i; for (i=0; i<20; i++){ - thpool_add_work(threadpool, (void*)task1, NULL); - thpool_add_work(threadpool, (void*)task2, NULL); + thpool_add_work(thpool, (void*)task1, NULL); + thpool_add_work(thpool, (void*)task2, NULL); }; puts("Killing threadpool"); - thpool_destroy(threadpool); + thpool_destroy(thpool); return 0; }