C# Class Watchdog.Validation.Core.Util.ReentrancyGuard.ExitToken

A single token created to delineate a guarded scope. When created, it sets the locked flag to of the given guard to true. When disposed it sets the flag back to false.
Inheritance: IDisposable
Datei anzeigen Open project: JDolinger/Watchdog

Public Methods

Method Description
Dispose ( ) : void

Resets the guards locked state.

ExitToken ( ReentrancyGuard g ) : System

Initializes a new instance of the ExitToken class, which has the effect of locking the ReentrancyGuard.

Method Details

Dispose() public method

Resets the guards locked state.
public Dispose ( ) : void
return void

ExitToken() public method

Initializes a new instance of the ExitToken class, which has the effect of locking the ReentrancyGuard.
public ExitToken ( ReentrancyGuard g ) : System
g ReentrancyGuard /// The containing the /// locked state. ///
return System