Method | Description | |
---|---|---|
AddAndGet ( long value ) : long |
Increments the sequence and stores the result, as an atomic operation.
|
|
CompareAndSet ( long expectedSequence, long nextSequence ) : bool |
Atomically set the value to the given updated value if the current value == the expected value.
|
|
IncrementAndGet ( ) : long |
Increments the sequence and stores the result, as an atomic operation.
|
|
Sequence ( long initialValue = InitialCursorValue ) : System.Runtime.InteropServices |
Construct a new sequence counter that can be tracked across threads.
|
|
SetValue ( long value ) : void |
Perform an ordered write of this sequence. The intent is a Store/Store barrier between this write and any previous store.
|
|
SetValueVolatile ( long value ) : void |
Performs a volatile write of this sequence. The intent is a Store/Store barrier between this write and any previous write and a Store/Load barrier between this write and any subsequent volatile read.
|
|
ToString ( ) : string |
Value of the Sequence as a String.
|
public CompareAndSet ( long expectedSequence, long nextSequence ) : bool | ||
expectedSequence | long | the expected value for the sequence |
nextSequence | long | the new value for the sequence |
return | bool |
public Sequence ( long initialValue = InitialCursorValue ) : System.Runtime.InteropServices | ||
initialValue | long | initial value for the counter |
return | System.Runtime.InteropServices |
public SetValue ( long value ) : void | ||
value | long | The new value for the sequence. |
return | void |
public SetValueVolatile ( long value ) : void | ||
value | long | |
return | void |