X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=c%2Fpthread_extra%2Ftest_pause.c;h=467328940c87c786f61b024436de2506a4fa8dc6;hb=24286ba9a7ae3a8c6f5eefe9455e18bd758e742b;hp=47f2db0cc20b0cf48bb17284cd1fab5891673676;hpb=883427014d5349442395c1059af5a1abade951ad;p=mirrors%2FPrograms.git diff --git a/c/pthread_extra/test_pause.c b/c/pthread_extra/test_pause.c index 47f2db0..4673289 100644 --- a/c/pthread_extra/test_pause.c +++ b/c/pthread_extra/test_pause.c @@ -22,6 +22,22 @@ int main() { //That way you can be sure it is pausable immediately pthread_create(&a, NULL, thread_test, " A"); pthread_create(&b, NULL, thread_test, " B"); + //sleep(1); + + //printf("OK\n"); + /* + for(int32_t i = 1;i>0;i++) { + pthread_pause(a); + pthread_pause(a); + pthread_unpause(a); + pthread_unpause(a); + } + */ + /* + exit(23); + pthread_pause(a); + pthread_unpause(b); + */ while(1) { pthread_pause(b);