Module thread

Source
Expand description

Implements threads.

Structs§

Thread
A thread.
ThreadId
A thread identifier.
ThreadManager
A set of threads.
ThreadNotFound
An error signaling that the requested thread doesn’t exist.

Enums§

BlockReason
Keeps track of what the thread is blocked on.
SchedulingAction 🔒
ThreadJoinStatus 🔒
The join status of a thread.
ThreadState 🔒
The state of a thread.
Timeout 🔒
The moment in time when a blocked thread should be woken up.
TimeoutAnchor
Whether the timeout is relative or absolute.
TimeoutClock
The clock to use for the timeout you are asking for.
TlsAllocAction
What to do with TLS allocations from terminated threads
UnblockKind
The argument type for the “unblock” callback, indicating why the thread got unblocked.

Traits§

EvalContextExt
EvalContextPrivExt 🔒

Type Aliases§

DynUnblockCallback
Type alias for unblock callbacks, i.e. machine callbacks invoked when a thread gets unblocked.
StackEmptyCallback