Expand description
Runtime interface for threads.
Enums§
- Possible join error states.
- Possible spawn error types.
Functions§
- If the futex word pointed to by
word
is equal to expected, put the thread to sleep. This operation is atomic – the thread is enqueued on the sleep queue first, before the equality check. Returns false on timeout, true on all other cases. - Wake up up to max threads waiting on
word
. If max is None, wake up all threads. - Wait for a thread to exit, optionally timing out.
- Set the name of the calling thread.
- Sleep the calling thread for duration
dur
. - Spawn a thread. On success, that thread starts executing concurrently with the return of this function.
- Get the address of a given TLS variable.
- Yield the calling thread.
Type Aliases§
- Atomic futex word, for a linux-like thread wait.
- Type of a linux-like wait point.
- Runtime-internal thread ID.
- Arguments to spawn.
- Index of a TLS variable.