thread_id

Function get

source
pub fn get() -> usize
Expand description

Returns a number that is unique to the calling thread.

Calling this function twice from the same thread will return the same number. Calling this function from a different thread will return a different number.