pub fn thread_key() -> usize
A key unique to the calling thread among live threads — the address a thread_local! would give, without std. pthread_t on Linux is the thread’s descriptor address.
thread_local!
std
pthread_t