Skip to main content

thread_schedule_policy_param

Function thread_schedule_policy_param 

pub fn thread_schedule_policy_param(
    native: u64,
) -> Result<(ThreadSchedulePolicy, ScheduleParams), Error>
Available on Linux or macOS or iOS or DragonFly BSD or FreeBSD or OpenBSD or VxWorks or NetBSD or Android or WebAssembly only.
Expand description

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());