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 struct LockStamp : IEquatable<ReaderWriterSpinLock.LockStamp>

Methods

| Improve this Doc View Source

Equals(ReaderWriterSpinLock.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
Boolean

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

| Improve this Doc 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
Boolean

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

Overrides
ValueType.Equals(Object)
| Improve this Doc View Source

GetHashCode()

Computes hash code for this stamp.

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

The hash code of this stamp.

Overrides
ValueType.GetHashCode()

Operators

| Improve this Doc View Source

Equality(ReaderWriterSpinLock.LockStamp, ReaderWriterSpinLock.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
Boolean

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

| Improve this Doc View Source

Inequality(ReaderWriterSpinLock.LockStamp, ReaderWriterSpinLock.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
Boolean

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

Implements

System.IEquatable<T>

Extension Methods

ValueTypeExtensions.IsOneOf<T>(T, IEnumerable<T>)
ValueTypeExtensions.IsOneOf<T>(T, T[])
Sequence.Skip<TEnumerator, T>(ref TEnumerator, Int32)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX