thread_priority::unix

Function thread_schedule_policy

Source
pub fn thread_schedule_policy() -> Result<ThreadSchedulePolicy, Error>
Expand description

Returns policy parameters (schedule policy and other schedule parameters) for current process

ยงUsage

use thread_priority::*;

assert!(thread_schedule_policy().is_ok());