Expand description
Implements threads.
Re-exportsΒ§
use std::mem;πuse std::task::Poll;πuse std::time::Duration;πuse std::time::SystemTime;πuse rand::RngExt;πuse rustc_abi::ExternAbi;πuse rustc_data_structures::either::Either;πuse rustc_data_structures::fx::FxHashMap;πuse rustc_hir::def_id::DefId;πuse rustc_index::Idx;πuse rustc_index::IndexVec;πuse rustc_middle::mir::Mutability;πuse rustc_middle::ty::layout::TyAndLayout;πuse rustc_span::DUMMY_SP;πuse rustc_span::Span;πuse rustc_target::spec::Os;πuse crate::concurrency::GlobalDataRaceHandler;πuse crate::shims::tls;πuse crate::*;π
StructsΒ§
- Thread
- A thread.
- Thread
Id - A thread identifier.
- Thread
Manager - A set of threads.
EnumsΒ§
- Block
Reason - Keeps track of what the thread is blocked on.
- Thread
Join πStatus - The join status of a thread.
- Thread
Lookup Error - An error signaling that the requested thread doesnβt exist or has terminated.
- Thread
State π - The state of a thread.
- Unblock
Kind - The argument type for the βunblockβ callback, indicating why the thread got unblocked.
TraitsΒ§
Type AliasesΒ§
- DynUnblock
Callback - Type alias for unblock callbacks, i.e. machine callbacks invoked when a thread gets unblocked.
- Stack
Empty Callback