Function rc_pthread_set_properties_self#
Defined in File pthread.h
Function Documentation#
-
int rc_pthread_set_properties_self(int policy, int priority)#
Lets a thread change it’s own scheduler policy and priority while running.
- Parameters:
policy – [in] SCHED_FIFO SCHED_RR or SCHED_OTHER
priority – [in] between 1-99 for FIFO and RR, defualt 0 for SCHED_OTHER
- Returns:
0 on success or -1 on failure