C# Class SimpleWriteApp.MySmartReaderWriterLock

A reader-writer lock implementation designed to support a limited number of concurrent readers, and a single writer. If more than one writer attempts to acquire the lock at the same time, the behavior is undefined.
Mostrar archivo Open project: selagroup/diagnostics-courses Class Usage Examples

Public Methods

Method Description
LockForReading ( ) : void
LockForWriting ( ) : void
MySmartReaderWriterLock ( int maxReaders ) : System
UnlockForReading ( ) : void
UnlockForWriting ( ) : void

Method Details

LockForReading() public method

public LockForReading ( ) : void
return void

LockForWriting() public method

public LockForWriting ( ) : void
return void

MySmartReaderWriterLock() public method

public MySmartReaderWriterLock ( int maxReaders ) : System
maxReaders int
return System

UnlockForReading() public method

public UnlockForReading ( ) : void
return void

UnlockForWriting() public method

public UnlockForWriting ( ) : void
return void