solana_perf::thread

Function renice_this_thread

Source
pub fn renice_this_thread(adjustment: i8) -> Result<(), String>
Expand description

Adds adjustment to the nice value of calling thread. Negative adjustment increases priority, positive adjustment decreases priority. New thread inherits nice value from current thread when created.

Fails on non-Linux systems for all adjustment values except of zero.