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
Show file Open project: Alliance-Network/Library

Public Methods

Method Description
DeadlockMonitorCookie ( object obj ) : System

Initializes the DdMonitorCookie.

Dispose ( ) : void

Exit the lock.

Method Details

DeadlockMonitorCookie() public method

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

Dispose() public method

Exit the lock.
public Dispose ( ) : void
return void