Struct pcp_mutex::ThreadState[][src]

pub struct ThreadState { /* fields omitted */ }
Expand description

A helper object that contains thread id and keeps track of current priority

Implementations

Creates a new ThreadState with a given priority.

Safety

The given priority and thread id must be valid.

Constructs ThreadState from gettid and sched_getparam syscalls

Sets current thread scheduling policy to SCHED_FIFO with a given priority and returns ThreadState

Returns id of the thread

Returns the current thread priority

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.