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§
- WinAPI
Thread Priority - The WinAPI priority representation. Check out MSDN for more info: https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setthreadpriority
Traits§
- Thread
Ext - Windows-specific complemented part of the
crate::ThreadExt
trait.
Functions§
- get_
current_ thread_ priority - Get current thread’s priority value.
- get_
thread_ priority - Get the thread’s priority value.
- 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.
- set_
winapi_ thread_ priority - Sets thread’s priority and schedule policy using WinAPI priority values.
- 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.
Type Aliases§
- Ideal
Processor - An alias type for specifying the ideal processor. Used in the WinAPI for affinity control.
- Thread
Id - An alias type for a thread id.