updated API

This commit is contained in:
Johan 2015-01-17 19:43:48 +00:00
parent b18db81e1b
commit 1cb90a3ca9
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ int main(int argc, char *argv[]){
}
int num_threads = strtol(argv[1], &p, 10);
thpool threadpool = thpool_init(num_threads);
thpool_destroy(threadpool);
threadpool thpool = thpool_init(num_threads);
thpool_destroy(thpool);
sleep(1); // Sometimes main exits before thpool_destroy finished 100%