Module worker_
local
rustc_
data_
structures
1.87.0-nightly
(43f0014ef 2025-03-25)
Module worker_
local
Module Items
Structs
Constants
In rustc_
data_
structures::
sync
Modules
atomic
freeze
lock
mode
parallel
vec
worker_local
Structs
AppendOnlyIndexVec
AppendOnlyVec
AtomicU64
CacheAligned
FreezeLock
FreezeReadGuard
FreezeWriteGuard
MTLock
Registry
RwLock
WorkerLocal
Constants
ERROR_CHECKING
Traits
HashMapExt
Functions
is_dyn_thread_safe
join
par_for_each_in
par_map
parallel_guard
scope
set_dyn_thread_safe_mode
try_par_for_each_in
Type Aliases
MappedReadGuard
MappedWriteGuard
ReadGuard
WriteGuard
rustc_data_structures
::
sync
Module
worker_local
Copy item path
Settings
Help
Summary
Source
Structs
§
Registry
Represents a list of threads which can access worker locals.
Registry
Data
🔒
Registry
Id
🔒
A pointer to the
RegistryData
which uniquely identifies a registry. This identifier can be reused if the registry gets freed.
Thread
Data
🔒
Worker
Local
Holds worker local values for each possible thread in a registry. You can only access the worker local value through the
Deref
impl on the registry associated with the thread it was created on. It will panic otherwise.
Constants
§
REGISTRY
🔒
The registry associated with the thread. This allows the
WorkerLocal
type to clone the registry in its constructor.
THREAD_
DATA
🔒
A thread local which contains the identifier of
REGISTRY
but allows for faster access. It also holds the index of the current thread.