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

Traits

Windows-specific complemented part of the crate::ThreadExt trait.

Functions

Get current thread’s priority value.

Get the thread’s priority value.

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.

Sets thread’s priority and schedule policy using WinAPI priority values.

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 Definitions

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

An alias type for a thread id.