miri
1.87.0-nightly
(920d95eaf 2025-03-28)
Module sync
Module Items
Macros
Structs
Constants
Traits
In miri::
concurrency
miri
::
concurrency
Module
sync
Copy item path
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
๐