twizzler_rt_abi

Module thread

source
Expand description

Runtime interface for threads.

Enums§

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§