X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=struct%2Fht_test.c;h=c7e6d57c1d34c59f9cd4ae2ce89750f1e544e0d1;hp=e8fcc4c299489355eb4cdb88b1e17eae9bf1308b;hb=fb536c12185fd1e339b5fd479d9ef84554b436df;hpb=3ad1b21110cea1cf04f6acf5500d774bba05a8c8 diff --git a/struct/ht_test.c b/struct/ht_test.c index e8fcc4c..c7e6d57 100644 --- a/struct/ht_test.c +++ b/struct/ht_test.c @@ -130,8 +130,8 @@ void simple_add_remove (CuTest* tc) { wd[i].tc = tc; wd[i].ht = ht; wd[i].wait = &wait; - int rc = pthread_create(thread + i, NULL, simple_worker, wd + i); - if (rc != 0) { perror("pthread_create"); return; } + int rc = nbd_thread_create(thread + i, i, simple_worker, wd + i); + if (rc != 0) { perror("nbd_thread_create"); return; } } for (i = 0; i < 2; ++i) { pthread_join(thread[i], NULL);