pub unsafe fn gettid() -> i32 ⓘ
dep_nc
Get the caller’s thread ID (TID).
let tid = unsafe { nc::gettid() }; assert!(tid > 0);