Skip to main content

current_thread

Function current_thread 

Source
pub fn current_thread() -> usize
Expand description

The id of the calling thread: the key of its worker in the table of threads of the module. 0 in a build without threads.