Struct AsyncReaderWriterLock.LockStamp
Represents lock stamp used for optimistic reading.
Implements
Inherited Members
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public readonly struct AsyncReaderWriterLock.LockStamp : IEquatable<AsyncReaderWriterLock.LockStamp>
Methods
| Edit this page View SourceEquals(LockStamp)
Determines whether this stamp represents the same version of the lock state as the given stamp.
Declaration
public bool Equals(AsyncReaderWriterLock.LockStamp other)
Parameters
Type | Name | Description |
---|---|---|
AsyncReaderWriterLock.LockStamp | other | The lock stamp to compare. |
Returns
Type | Description |
---|---|
bool |
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 |
Overrides
| Edit this page View SourceGetHashCode()
Computes hash code for this stamp.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code of this stamp. |
Overrides
Operators
| Edit this page View Sourceoperator ==(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 AsyncReaderWriterLock.LockStamp first, in AsyncReaderWriterLock.LockStamp second)
Parameters
Type | Name | Description |
---|---|---|
AsyncReaderWriterLock.LockStamp | first | The first lock stamp to compare. |
AsyncReaderWriterLock.LockStamp | second | The second lock stamp to compare. |
Returns
Type | Description |
---|---|
bool |
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 AsyncReaderWriterLock.LockStamp first, in AsyncReaderWriterLock.LockStamp second)
Parameters
Type | Name | Description |
---|---|---|
AsyncReaderWriterLock.LockStamp | first | The first lock stamp to compare. |
AsyncReaderWriterLock.LockStamp | second | The second lock stamp to compare. |
Returns
Type | Description |
---|---|
bool | true of |