[][src]Function thread_priority::unix::thread_schedule_policy_param

pub fn thread_schedule_policy_param(
    native: ThreadId
) -> Result<(ThreadSchedulePolicy, ScheduleParams), Error>

Returns policy parameters (schedule policy and other schedule parameters)

Usage

use thread_priority::*;

let thread_id = thread_native_id();
assert!(thread_schedule_policy_param(thread_id).is_ok());