updated API

This commit is contained in:
Johan 2015-01-17 19:43:22 +00:00
parent 14d0ee9e76
commit b18db81e1b
1 changed files with 3 additions and 3 deletions

View File

@ -25,14 +25,14 @@ int main(int argc, char *argv[]){
int num_jobs = strtol(argv[1], &p, 10);
int num_threads = strtol(argv[2], &p, 10);
thpool threadpool = thpool_init(num_threads);
threadpool thpool = thpool_init(num_threads);
int n;
for (n=0; n<num_jobs; n++){
thpool_add_work(threadpool, (void*)increment, NULL);
thpool_add_work(thpool, (void*)increment, NULL);
}
thpool_wait(threadpool);
thpool_wait(thpool);
printf("%d\n", sum);