1
0
mirror of https://github.com/bspeice/qadapt synced 2025-07-15 12:44:55 -04:00
Files
qadapt/src/thread_id.rs

6 lines
165 B
Rust

/// Taken from https://crates.io/crates/thread-id and re-purposed to be no-std safe
use libc;
pub fn get() -> usize {
unsafe { libc::pthread_self() as usize }
}