use std::num::NonZeroUsize;
#[derive(Default, Debug)]
pub struct RawThreadId;
unsafe impl lock_api::GetThreadId for RawThreadId {
const INIT: Self = Self;
fn nonzero_thread_id(&self) -> NonZeroUsize {
thread_local!(static ID: bool = false);
ID.with(|id| NonZeroUsize::new(id as *const _ as usize).unwrap())
}
}