| 1 |
//! Thread-associated operations. |
| 2 |
|
| 3 |
#[cfg(not(target_os = "redox"))] |
| 4 |
mod clock; |
| 5 |
#[cfg(linux_kernel)] |
| 6 |
pub mod futex; |
| 7 |
#[cfg(linux_kernel)] |
| 8 |
mod id; |
| 9 |
#[cfg(linux_kernel)] |
| 10 |
mod libcap; |
| 11 |
#[cfg(linux_kernel)] |
| 12 |
mod membarrier; |
| 13 |
#[cfg(linux_kernel)] |
| 14 |
mod prctl; |
| 15 |
#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] |
| 16 |
mod sched; |
| 17 |
mod sched_yield; |
| 18 |
#[cfg(linux_kernel)] |
| 19 |
mod setns; |
| 20 |
|
| 21 |
#[cfg(not(target_os = "redox"))] |
| 22 |
pub use clock::*; |
| 23 |
#[cfg(linux_kernel)] |
| 24 |
pub use id::*; |
| 25 |
#[cfg(linux_kernel)] |
| 26 |
// #[expect(deprecated, reason = "CapabilityFlags is deprecated")] |
| 27 |
#[allow(deprecated)] |
| 28 |
pub use libcap::{capabilities, set_capabilities, CapabilityFlags, CapabilitySet, CapabilitySets}; |
| 29 |
#[cfg(linux_kernel)] |
| 30 |
pub use membarrier::*; |
| 31 |
#[cfg(linux_kernel)] |
| 32 |
pub use prctl::*; |
| 33 |
#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] |
| 34 |
pub use sched::*; |
| 35 |
pub use sched_yield::sched_yield; |
| 36 |
#[cfg(linux_kernel)] |
| 37 |
pub use setns::*; |