pub(super) struct ThreadClockSet {
    pub(super) clock: VClock,
    fence_acquire: VClock,
    fence_release: VClock,
    pub(super) fence_seqcst: VClock,
    pub(super) write_seqcst: VClock,
    pub(super) read_seqcst: VClock,
}
Expand description

The current set of vector clocks describing the state of a thread, contains the happens-before clock and additional metadata to model atomic fence operations.

Fields

clock: VClock

The increasing clock representing timestamps that happen-before this thread.

fence_acquire: VClock

The set of timestamps that will happen-before this thread once it performs an acquire fence.

fence_release: VClock

The last timestamp of happens-before relations that have been released by this thread by a fence.

fence_seqcst: VClock

Timestamps of the last SC fence performed by each thread, updated when this thread performs an SC fence

write_seqcst: VClock

Timestamps of the last SC write performed by each thread, updated when this thread performs an SC fence

read_seqcst: VClock

Timestamps of the last SC fence performed by each thread, updated when this thread performs an SC read

Implementations

Apply the effects of a release fence to this set of thread vector clocks.

Apply the effects of an acquire fence to this set of thread vector clocks.

Increment the happens-before clock at a known index.

Join the happens-before clock with that of another thread, used to model thread join operations.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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: 144 bytes