blob: 4c06baa145027c26f374c4a9050ff8007a93cec2 [file]
//@ rustfmt-unstable: true
//@ rustfmt-edition: 2024
fn gettid() -> u64 {
cfg_select! {
any(target_os = "solaris", target_os = "illumos") => {
// On Solaris and Illumos, the `pthread_t` is the OS TID.
unsafe { libc::pthread_self() as u64 }
}
}
}