ReaderWriterSpinLock
Represents lightweight reader-writer lock based on spin loop.
Represents lock stamp used for optimistic reading.
Gets the total number of unique threads that have entered the lock in read mode.
Gets a value that indicates whether the current thread has entered the lock in read mode.
Gets a value that indicates whether the current thread has entered the lock in write mode.
Downgrades a writer lock back to the reader lock.
Enters the lock in read mode.
Enters the lock in write mode.
Exits read mode.
Exits the write lock.
Attempts to enter reader lock without blocking the caller thread.
Tries to enter the lock in read mode.
Attempts to enter writer lock without blocking the caller thread.
Tries to enter the lock in write mode.
Returns a stamp that can be validated later.
Attempts to upgrade a reader lock to the writer lock.
Attempts to upgrade a reader lock to the writer lock.
Upgrades a reader lock to the writer lock.
Returns true if the lock has not been exclusively acquired since issuance of the given stamp.