X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=c%2Fpthread_extra%2Fpthread_extra.h;h=4df45d97eb6b29d3fed4398035a31756e4cf5fc0;hb=3b8f487aed778edba3d8cffe5bdad8e56470c84a;hp=ca5de70c6ae121025b2935e74345c1fa107fbc78;hpb=70bd1c94dee46dac0885831ccce3d1840388656e;p=mirrors%2FPrograms.git diff --git a/c/pthread_extra/pthread_extra.h b/c/pthread_extra/pthread_extra.h index ca5de70..4df45d9 100644 --- a/c/pthread_extra/pthread_extra.h +++ b/c/pthread_extra/pthread_extra.h @@ -32,6 +32,7 @@ void** pthread_user_data_ptr(pthread_t thread); void* pthread_user_data_get(pthread_t thread); void pthread_user_data_set(pthread_t thread, void *usr); void pthread_user_data_cleanup(void * arg); +int pthread_user_data_internal_iterate(int (*routine)(pthread_t), void *arg); // Pausing @@ -50,6 +51,8 @@ void pthread_pause_enable(); void pthread_pause_disable(); int pthread_pause(pthread_t thread); int pthread_unpause(pthread_t thread); +int pthread_pause_all(); +int pthread_unpause_all(); int pthread_pause_reschedule(pthread_t thread); int pthread_extra_yield();