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.
Sets current thread scheduling policy to SCHED_FIFO with a given priority and returns ThreadState
Returns the current thread priority