pub fn gettid() -> PidExpand description
gettid()—Returns the thread ID.
This returns the OS thread ID, which is not necessarily the same as the
Rust’s std::thread::Thread::id or the pthread ID.
This function always does a system call. To avoid this overhead, ask the
thread runtime for the ID instead, for example using libc::gettid or
origin::thread::current_id.