C# Class Library.DeadlockMonitor.DeadlockMonitorCookie

Enables syntax close to that of lock(obj) {...}. Rather, the Lock method will return an instance of this IDisposable and in its Dispose method it will release the lock, thus enabling the syntax: using(DdMonitorFirstAttempt.Lock(obj)) {...}
Inheritance: IDisposable
Afficher le fichier Open project: Alliance-Network/Library

Méthodes publiques

Méthode Description
DeadlockMonitorCookie ( object obj ) : System

Initializes the DdMonitorCookie.

Dispose ( ) : void

Exit the lock.

Method Details

DeadlockMonitorCookie() public méthode

Initializes the DdMonitorCookie.
public DeadlockMonitorCookie ( object obj ) : System
obj object The object to be released.
Résultat System

Dispose() public méthode

Exit the lock.
public Dispose ( ) : void
Résultat void