Skip to main content

Module thread

Module thread 

Source
Expand description

Pure-Rust thread lifecycle (spawn_thread, ThreadHandle), per-thread errno, and 64-key thread-local storage with exit destructors.

Structs§

ThreadHandle

Constants§

CLONE_CHILD_CLEARTID
CLONE_CHILD_SETTID
CLONE_FILES
CLONE_FS
CLONE_PARENT_SETTID
CLONE_SETTLS
CLONE_SIGHAND
CLONE_SYSVSEM
CLONE_THREAD
CLONE_VM
DEFAULT_STACK_BYTES
MAX_TLS_KEYS
MIN_STACK_BYTES

Functions§

current_thread_id
errno_cell
run_current_thread_tls_destructors
spawn_thread⚠
Spawns a new thread executing entry(arg) on a guarded stack.
tls_get
tls_key_create
tls_key_delete
tls_set