struct AtomicMemoryCellClocks {
read_vector: VClock,
write_vector: VClock,
sync_vector: VClock,
size: Option<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: Option<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.
None
indicates that we saw multiple different sizes, which is okay as long as all accesses are reads.
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: 208 bytes