thread_priority::windows

Function set_current_thread_ideal_processor

Source
pub fn set_current_thread_ideal_processor(
    ideal_processor: IdealProcessor,
) -> Result<IdealProcessor, Error>
Expand description

Sets a preferred processor for a current thread. The system schedules threads on their preferred processors whenever possible.

This is a short-hand of the set_thread_ideal_processor function for the current thread.