Function thread_priority::windows::set_thread_priority_boost[][src]

pub fn set_thread_priority_boost(
    native: ThreadId,
    enabled: bool
) -> Result<(), Error>
Expand description

Disables or enables the ability of the system to temporarily boost the priority of a thread.

If there’s an error, a result of GetLastError is returned.

Usage

use thread_priority::*;

let thread_id = thread_native_id();
assert!(set_thread_priority_boost(thread_id, false).is_ok())