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.
Afficher le fichier Open project: selagroup/diagnostics-courses Class Usage Examples

Méthodes publiques

Méthode Description
LockForReading ( ) : void
LockForWriting ( ) : void
MySmartReaderWriterLock ( int maxReaders ) : System
UnlockForReading ( ) : void
UnlockForWriting ( ) : void

Method Details

LockForReading() public méthode

public LockForReading ( ) : void
Résultat void

LockForWriting() public méthode

public LockForWriting ( ) : void
Résultat void

MySmartReaderWriterLock() public méthode

public MySmartReaderWriterLock ( int maxReaders ) : System
maxReaders int
Résultat System

UnlockForReading() public méthode

public UnlockForReading ( ) : void
Résultat void

UnlockForWriting() public méthode

public UnlockForWriting ( ) : void
Résultat void