Skip to main content

Module thread

Module thread 

Source
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.
ThreadId
A thread identifier.
ThreadManager
A set of threads.

EnumsΒ§

BlockReason
Keeps track of what the thread is blocked on.
ThreadJoinStatus πŸ”’
The join status of a thread.
ThreadLookupError
An error signaling that the requested thread doesn’t exist or has terminated.
ThreadState πŸ”’
The state of a thread.
UnblockKind
The argument type for the β€œunblock” callback, indicating why the thread got unblocked.

TraitsΒ§

EvalContextExt

Type AliasesΒ§

DynUnblockCallback
Type alias for unblock callbacks, i.e. machine callbacks invoked when a thread gets unblocked.
StackEmptyCallback