Function rc_pthread_set_process_niceness¶
Defined in File pthread.h
Function Documentation¶
-
int rc_pthread_set_process_niceness(int niceness)¶
Lets a process change its own niceness value.
Note that this requires special privaledges and will print an error if run by a normal user. This is just a helpful wrapper for the system setpriority funtion and returns the same thing.
- Parameters
niceness – [in] new niceness (-20 to 20)
- Returns
0 on success, -1 on failure