Module sync
miri
1.86.0-beta.7
(7824ede68 2025-03-22)
Module sync
Module Items
Macros
Structs
Constants
Traits
In miri::
concurrency
Modules
cpu_affinity
data_race
init_once
range_object_map
sync
thread
vector_clock
weak_memory
miri
::
concurrency
Module
sync
Copy item path
Settings
Help
Summary
Source
Macros
§
declare_
id
🔒
We cannot use the
newtype_index!
macro because we have to use 0 as a sentinel value meaning that the identifier is not assigned. This is because the pthreads static initializers initialize memory with zeros (see the
src/shims/sync.rs
file).
Structs
§
Condvar
🔒
The conditional variable state.
Condvar
Id
0 is used to indicate that the id was not yet assigned and, therefore, is not a valid identifier.
Futex
🔒
The futex state.
Futex
Ref
Futex
Waiter
🔒
A thread waiting on a futex.
Mutex
🔒
The mutex state.
Mutex
Ref
RwLock
🔒
The read-write lock state.
RwLock
Id
0 is used to indicate that the id was not yet assigned and, therefore, is not a valid identifier.
Synchronization
Objects
The state of all synchronization objects.
Constants
§
LAZY_
INIT_
COOKIE
We designate an
init`` field in all primitives. If
init` is set to this, we consider the primitive initialized.
Traits
§
Eval
Context
Ext
Eval
Context
ExtPriv
🔒