5 releases
| 0.1.4 | Aug 20, 2025 |
|---|---|
| 0.1.3 | Jun 21, 2024 |
| 0.1.2 | Jun 25, 2020 |
| 0.1.1 | Feb 20, 2020 |
| 0.1.0 | May 4, 2019 |
#1 in #integer-id
100,253 downloads per month
Used in 4 crates
(3 directly)
4KB
gettid
A crate to help with fetching thread IDs across multiple platforms.
use gettid::gettid;
let main_tid = gettid();
let pid = std::process::id();
let thread_tid = std::thread::spawn(gettid).join().unwrap();
assert_ne!(main_tid, thread_tid);
Dependencies
~42KB