Struct miri::concurrency::data_race::AtomicMemoryCellClocks
source · struct AtomicMemoryCellClocks {
read_vector: VClock,
write_vector: VClock,
sync_vector: VClock,
}
Expand description
Externally stored memory cell clocks explicitly to reduce memory usage for the common case where no atomic operations exists on the memory cell.
Fields§
§read_vector: VClock
The clock-vector of the timestamp of the last atomic read operation performed by each thread. This detects potential data-races between atomic read and non-atomic write operations.
write_vector: VClock
The clock-vector of the timestamp of the last atomic write operation performed by each thread. This detects potential data-races between atomic write and non-atomic read or write operations.
sync_vector: VClock
Synchronization vector for acquire-release semantics contains the vector of timestamps that will happen-before a thread if an acquire-load is performed on the data.
Trait Implementations§
source§impl Clone for AtomicMemoryCellClocks
impl Clone for AtomicMemoryCellClocks
source§fn clone(&self) -> AtomicMemoryCellClocks
fn clone(&self) -> AtomicMemoryCellClocks
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AtomicMemoryCellClocks
impl Debug for AtomicMemoryCellClocks
source§impl Default for AtomicMemoryCellClocks
impl Default for AtomicMemoryCellClocks
source§fn default() -> AtomicMemoryCellClocks
fn default() -> AtomicMemoryCellClocks
source§impl PartialEq<AtomicMemoryCellClocks> for AtomicMemoryCellClocks
impl PartialEq<AtomicMemoryCellClocks> for AtomicMemoryCellClocks
source§fn eq(&self, other: &AtomicMemoryCellClocks) -> bool
fn eq(&self, other: &AtomicMemoryCellClocks) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for AtomicMemoryCellClocks
impl StructuralEq for AtomicMemoryCellClocks
impl StructuralPartialEq for AtomicMemoryCellClocks
Auto Trait Implementations§
impl RefUnwindSafe for AtomicMemoryCellClocks
impl !Send for AtomicMemoryCellClocks
impl !Sync for AtomicMemoryCellClocks
impl Unpin for AtomicMemoryCellClocks
impl UnwindSafe for AtomicMemoryCellClocks
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 192 bytes