Function nc::gettid[][src]

pub fn gettid() -> pid_t
Expand description

Get the caller’s thread ID (TID).

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