Represents lock stamp used for optimistic reading.
Namespace: DotNext.Threading Assembly: DotNext.dll Syntaxpublic 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.
Declarationpublic bool Equals(ReaderWriterSpinLock.LockStamp other)
Parameters Returns Type Description bool
true of this stamp is equal to other
; otherwise, false.
Determines whether this stamp represents the same version of the lock state as the given stamp.
Declarationpublic override bool Equals(object? other)
Parameters Type Name Description object other
The lock stamp to compare.
Returns Type Description booltrue of this stamp is equal to other
; otherwise, false.
Computes hash code for this stamp.
Declarationpublic override int GetHashCode()
Returns Type Description int
The hash code of this stamp.
Overrides 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.
Declarationpublic static bool operator ==(in ReaderWriterSpinLock.LockStamp first, in ReaderWriterSpinLock.LockStamp second)
Parameters Returns Type Description bool
true of first
stamp is equal to second
; otherwise, false.
Determines whether the first stamp represents the different version of the lock state as the second stamp.
Declarationpublic static bool operator !=(in ReaderWriterSpinLock.LockStamp first, in ReaderWriterSpinLock.LockStamp second)
Parameters Returns Type Description bool
true of first
stamp is not equal to second
; otherwise, false.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4