C# 클래스 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.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 메소드들

메소드 설명
DisposableCallback ( System.Action callback ) : System

Creates a read lock

Dispose ( ) : void

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

메소드 상세

DisposableCallback() 공개 메소드

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

Dispose() 공개 메소드

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