Show / Hide Table of Contents

Struct ReaderWriterSpinLock.LockStamp

Represents lock stamp used for optimistic reading.

Implements
IEquatable<ReaderWriterSpinLock.LockStamp>
Inherited Members
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
public readonly struct ReaderWriterSpinLock.LockStamp : IEquatable<ReaderWriterSpinLock.LockStamp>

Methods

| Edit this page View Source

Equals(LockStamp)

Determines whether this stamp represents the same version of the lock state as the given stamp.

Declaration
public bool Equals(ReaderWriterSpinLock.LockStamp other)
Parameters
Type Name Description
ReaderWriterSpinLock.LockStamp other

The lock stamp to compare.

Returns
Type Description
bool

true of this stamp is equal to other; otherwise, false.

| Edit this page View Source

Equals(object?)

Determines whether this stamp represents the same version of the lock state as the given stamp.

Declaration
public override bool Equals(object? other)
Parameters
Type Name Description
object other

The lock stamp to compare.

Returns
Type Description
bool

true of this stamp is equal to other; otherwise, false.

Overrides
ValueType.Equals(object)
| Edit this page View Source

GetHashCode()

Computes hash code for this stamp.

Declaration
public override int GetHashCode()
Returns
Type Description
int

The hash code of this stamp.

Overrides
ValueType.GetHashCode()

Operators

| Edit this page View Source

operator ==(in LockStamp, in LockStamp)

Determines whether the first stamp represents the same version of the lock state as the second stamp.

Declaration
public static bool operator ==(in ReaderWriterSpinLock.LockStamp first, in ReaderWriterSpinLock.LockStamp second)
Parameters
Type Name Description
ReaderWriterSpinLock.LockStamp first

The first lock stamp to compare.

ReaderWriterSpinLock.LockStamp second

The second lock stamp to compare.

Returns
Type Description
bool

true of first stamp is equal to second; otherwise, false.

| Edit this page View Source

operator !=(in LockStamp, in LockStamp)

Determines whether the first stamp represents the different version of the lock state as the second stamp.

Declaration
public static bool operator !=(in ReaderWriterSpinLock.LockStamp first, in ReaderWriterSpinLock.LockStamp second)
Parameters
Type Name Description
ReaderWriterSpinLock.LockStamp first

The first lock stamp to compare.

ReaderWriterSpinLock.LockStamp second

The second lock stamp to compare.

Returns
Type Description
bool

true of first stamp is not equal to second; otherwise, false.

Implements

IEquatable<T>

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾