Skip to main content

cached_tid

Function cached_tid 

Source
pub fn cached_tid() -> u32
Expand 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.