()
| 429 | /// This is important for fork compatibility - the ID must remain stable after fork |
| 430 | #[cfg(unix)] |
| 431 | fn current_thread_id() -> u64 { |
| 432 | // pthread_self() for fork compatibility |
| 433 | unsafe { libc::pthread_self() as u64 } |
| 434 | } |
| 435 | |
| 436 | #[cfg(not(unix))] |
| 437 | fn current_thread_id() -> u64 { |
no test coverage detected