Skip to main content

Module thread

Module thread 

Source
Expand description

Guest threads and TLS (TPIDR_EL0, FD TLS path, cert verify).

Modules§

tls
Guest↔host TLS: TPIDR_EL0 + per-thread host snapshot.
tls_fd
TLS-wrapped guest FDs for freestanding libcurl (path B).
tls_verify
Host-side TLS certificate verification against a PEM CA bundle.

Structs§

GuestThreadStart
Arguments for a newly created guest worker.

Functions§

alloc_tid
Allocates a new guest thread id (unique within the process run).
ensure_host_alt_stack
live_workers
Number of live worker threads spawned via bsdthread_create.
reset_thread_runtime
Resets thread counters for a new guest run.
spawn_guest_thread
Spawns a host thread that enters guest code at start.entry.
thread_selfid
Current host thread’s guest tid (stable for the host thread lifetime).