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

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

Functions

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

Set current thread’s priority.

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

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

Sets thread’s priority and schedule policy

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

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.

Get current thread’s priority value.

Type Definitions

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

An alias type for a thread id.