42 int rc_pthread_create(pthread_t *thread,
void*(*func)(
void*),
void *arg,
int policy,
int priority);
114 #endif // RC_PTHREAD_HELPERS_H int rc_pthread_set_properties_self(int policy, int priority)
Lets a thread change it's own scheduler policy and priority while running.
int rc_pthread_create(pthread_t *thread, void *(*func)(void *), void *arg, int policy, int priority)
starts a pthread with specified policy and priority
int rc_pthread_set_process_niceness(int niceness)
Lets a process change its own niceness value.
int rc_pthread_get_process_niceness(void)
fetches the niceness value of the executing process
int rc_pthread_print_properties(pthread_t thread)
Prints human-readable scheduler and priority for a pthread_t handle.
int rc_pthread_timed_join(pthread_t thread, void **retval, float timeout_sec)
Joins a thread with timeout given in seconds.