pub fn cached_tid() -> u32Expand description
current_tid, read once per thread and cached: a thread’s tid never
changes, and gettid is a real syscall on Linux.
Allocation-free (const-initialized thread local), so it is as
hook-safe as current_tid itself.