rustix/thread/
mod.rs

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