Skip to main content

Module thread

Module thread 

Source
Expand description

Thread identity helpers. Thread identity helpers and per-thread source enrollment.

Structs§

ThreadTrackingGuard
Keeps the calling thread enrolled with the recorder’s per-thread sources.

Functions§

cached_tid
current_tid, read once per thread and cached: a thread’s tid never changes, and gettid is a real syscall on Linux.
current_tidAndroid or Linux
OS thread ID (tid) of the calling thread.