Function nc::gettid

source ·
pub unsafe fn gettid() -> pid_t
Expand description

Get the caller’s thread ID (TID).

§Example

let tid = unsafe { nc::gettid() };
assert!(tid > 0);