[][src]Module thread_priority::unix

This module defines the unix thread control.

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

Structs

ScheduleParams

Enums

NormalThreadSchedulePolicy

Normal (usual) schedule policies

RealtimeThreadSchedulePolicy

The following "real-time" policies are also supported, for special time-critical applications that need precise control over the way in which runnable processes are selected for execution

ThreadSchedulePolicy

Thread schedule policy definition

Functions

set_current_thread_priority

Set current thread's priority.

set_thread_priority_and_policy

Sets thread's priority and schedule policy

set_thread_schedule_policy

Sets thread schedule policy.

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.

thread_schedule_policy

Returns policy parameters (schedule policy and other schedule parameters) for current process

thread_schedule_policy_param

Returns policy parameters (schedule policy and other schedule parameters)

Type Definitions

ThreadId

An alias type for a thread id.