Struct ReaderWriterSpinLock.LockStamp
Represents lock stamp used for optimistic reading.
Implements
Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
public struct LockStamp : IEquatable<ReaderWriterSpinLock.LockStamp>
Methods
| Improve this Doc View SourceEquals(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 |
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 |
GetHashCode()
Computes hash code for this stamp.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of this stamp. |
Operators
| Improve this Doc View SourceEquality(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 |
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 |