X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=c%2Fpthread_extra%2Ftest_pause.c;h=f17be8a3de72c378780be4903f8e7ea8be9eb2b1;hb=7e0f3dba1713edfea98cdfe7909c08f68fa5f7b7;hp=467328940c87c786f61b024436de2506a4fa8dc6;hpb=24286ba9a7ae3a8c6f5eefe9455e18bd758e742b;p=mirrors%2FPrograms.git diff --git a/c/pthread_extra/test_pause.c b/c/pthread_extra/test_pause.c index 4673289..f17be8a 100644 --- a/c/pthread_extra/test_pause.c +++ b/c/pthread_extra/test_pause.c @@ -20,8 +20,8 @@ int main() { pthread_t a, b; pthread_pause_enable(); //Will get inherited by all threads from now on //That way you can be sure it is pausable immediately - pthread_create(&a, NULL, thread_test, " A"); - pthread_create(&b, NULL, thread_test, " B"); + pthread_extra_create(&a, NULL, thread_test, " A"); + pthread_extra_create(&b, NULL, thread_test, " B"); //sleep(1); //printf("OK\n");