The following tables list the members exposed by DebugLocking.
Name | Description | |
---|---|---|
DebugLocking Constructor | Overloaded. |
Name | Description | |
---|---|---|
CurrentReaderCount | Returns the total number of current readers for all threads | |
CurrentWriterCount | Returns the total number of current writers for all threads | |
MaxReaderCount | Returns the highest number of concurrent reads | |
MaxWriterCount | Returns the highest number of concurrent writes (aka max recursive count) | |
TotalReaderCount | Returns the total number of read locks acquired | |
TotalWriterCount | Returns the total number of write locks acquired |
Name | Description | |
---|---|---|
CaptureStack | Capture the stack on every lock aquisition and release | |
LocalReaderCount | Returns the total number of current readers for this thread | |
LocalWriterCount | Returns the total number of current writers for this thread | |
WriteVersion | Changes every time a write lock is aquired. If WriteVersion == 0, no write locks have been issued. |
Name | Description | |
---|---|---|
Dispose | Disposes of this lock | |
Read | Overloaded. Returns a reader lock that can be elevated to a write lock | |
ReleaseRead | Releases a read lock | |
ReleaseWrite | Releases a writer lock | |
TryRead | Returns true if the lock was successfully obtained within the timeout specified | |
TryWrite | Returns true if the lock was successfully obtained within the timeout specified | |
Write | Overloaded. Returns a read and write lock |