Get current thread identifier. PyThread_get_thread_ident on Unix (pthread_self).
()
| 1143 | /// Get current thread identifier. |
| 1144 | /// PyThread_get_thread_ident on Unix (pthread_self). |
| 1145 | fn current_thread_id() -> u64 { |
| 1146 | unsafe { libc::pthread_self() as u64 } |
| 1147 | } |
| 1148 | } |
| 1149 | |
| 1150 | #[cfg(all(not(unix), not(windows)))] |