Module thread_priority::windows[][src]

Expand description

This module defines the windows thread control.

The crate’s prelude doesn’t have much control over the windows threads, and this module provides better control over those.

Enums

WinAPIThreadPriority

The WinAPI priority representation. Check out MSDN for more info: https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setthreadpriority

Functions

set_current_thread_ideal_processor

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

set_current_thread_priority

Set current thread’s priority.

set_current_thread_priority_boost

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

set_thread_ideal_processor

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

set_thread_priority

Sets thread’s priority and schedule policy

set_thread_priority_boost

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

thread_native_id

Returns current thread id, which is the current OS’s native handle. It may or may not be equal or even related to rust’s thread id, there is absolutely no guarantee for that.

thread_priority

Get current thread’s priority value.

Type Definitions

IdealProcessor

An alias type for specifying the ideal processor. Used in the WinAPI for affinity control.

ThreadId

An alias type for a thread id.