Struct miri::concurrency::data_race::AtomicMemoryCellClocks
source · struct AtomicMemoryCellClocks {
read_vector: VClock,
write_vector: VClock,
sync_vector: VClock,
size: Size,
}
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.
size: Size
The size of accesses to this atomic location. We use this to detect non-synchronized mixed-size accesses. Since all accesses must be aligned to their size, this is sufficient to detect imperfectly overlapping accesses.
Implementations§
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 PartialEq for AtomicMemoryCellClocks
impl PartialEq for AtomicMemoryCellClocks
impl Eq for AtomicMemoryCellClocks
impl StructuralPartialEq for AtomicMemoryCellClocks
Auto Trait Implementations§
impl Freeze for AtomicMemoryCellClocks
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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: 200 bytes