X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=c%2Fpthread_pause.c;h=7d6ed6af01a57daef4c91d417ef3eb08df15dc04;hb=5f138e3d34ccd5d71ca80a18ca564be1aca01f3b;hp=81620a5bad30145e450c49a00626bb4845752e76;hpb=d0c03bf12c2c930b628f8748ec26c25a38327066;p=mirrors%2FPrograms.git diff --git a/c/pthread_pause.c b/c/pthread_pause.c index 81620a5..7d6ed6a 100644 --- a/c/pthread_pause.c +++ b/c/pthread_pause.c @@ -1,7 +1,7 @@ -//Filename: pause.c +//Filename: pthread_pause.c //Author: Tomas 'Harvie' Mudrunka 2021 -//Build: CFLAGS=-lpthread make pause; ./pause -//Test: valgrind --tool=helgrind ./pause +//Build: CFLAGS=-lpthread make pthread_pause; ./pthread_pause +//Test: valgrind --tool=helgrind ./pthread_pause //I've wrote this code as excercise to solve following stack overflow question: // https://stackoverflow.com/questions/9397068/how-to-pause-a-pthread-any-time-i-want/68119116#68119116