pub fn current_thread() -> usize
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.