1b8a62b91Sopenharmony_ci//! Thread-associated operations. 2b8a62b91Sopenharmony_ci 3b8a62b91Sopenharmony_ci#[cfg(not(target_os = "redox"))] 4b8a62b91Sopenharmony_cimod clock; 5b8a62b91Sopenharmony_ci#[cfg(linux_raw)] 6b8a62b91Sopenharmony_cimod futex; 7b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "linux"))] 8b8a62b91Sopenharmony_cimod id; 9b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "linux"))] 10b8a62b91Sopenharmony_cimod prctl; 11b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "linux"))] 12b8a62b91Sopenharmony_cimod setns; 13b8a62b91Sopenharmony_ci 14b8a62b91Sopenharmony_ci#[cfg(not(any( 15b8a62b91Sopenharmony_ci target_os = "dragonfly", 16b8a62b91Sopenharmony_ci target_os = "emscripten", 17b8a62b91Sopenharmony_ci target_os = "freebsd", 18b8a62b91Sopenharmony_ci target_os = "haiku", 19b8a62b91Sopenharmony_ci target_os = "ios", 20b8a62b91Sopenharmony_ci target_os = "macos", 21b8a62b91Sopenharmony_ci target_os = "openbsd", 22b8a62b91Sopenharmony_ci target_os = "redox", 23b8a62b91Sopenharmony_ci target_os = "wasi", 24b8a62b91Sopenharmony_ci)))] 25b8a62b91Sopenharmony_cipub use clock::{clock_nanosleep_absolute, clock_nanosleep_relative, ClockId}; 26b8a62b91Sopenharmony_ci#[cfg(not(target_os = "redox"))] 27b8a62b91Sopenharmony_cipub use clock::{nanosleep, NanosleepRelativeResult, Timespec}; 28b8a62b91Sopenharmony_ci#[cfg(linux_raw)] 29b8a62b91Sopenharmony_cipub use futex::{futex, FutexFlags, FutexOperation}; 30b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "linux"))] 31b8a62b91Sopenharmony_cipub use id::gettid; 32b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "linux"))] 33b8a62b91Sopenharmony_cipub use prctl::*; 34b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "linux"))] 35b8a62b91Sopenharmony_cipub use setns::*; 36