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.
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.
Returns true if the lock has not been exclusively acquired since issuance of the given stamp.