C# Class GSF.Threading.DisposableCallback

A struct that executes a certain action upon disposing. The intended use for this is inside of a using block to assist in the proper release of a lock. Being a struct, it is unsafe make copies of this struct as Dispose may be called multiple times.
Datei anzeigen Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
DisposableCallback ( System.Action callback ) : System

Creates a read lock

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Method Details

DisposableCallback() public method

Creates a read lock
public DisposableCallback ( System.Action callback ) : System
callback System.Action
return System

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void