mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-20 16:16:05 +00:00
std: use the address of `errno` to identify threads in `unique_thread_exit` Getting the address of `errno` should be just as cheap as `pthread_self()` and avoids having to use the expensive `Mutex` logic because it always results in a pointer.