C# 클래스 GSF.Threading.SafeManualResetEvent

Provides a thread safe implementation of the ManualResetEvent class
While ManualResetEvent is mostly thread safe, calls to Dispose can cause other waiting threads to throw ObjectDisposedException. This class makes disposing of the class thread safe as well. Note: Not properly disposing of this class can cause all threads waiting on this class to wait indefinately.
상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases all the resources used by the SafeManualResetEvent object. Also signals all waiting threads and ignores all calls to Reset.

Reset ( ) : void

Sets the state of the event to signaled, allowing one or more waiting threads to proceed.

SafeManualResetEvent ( bool signaledState ) : System

Creates a new SafeManualResetEvent

Set ( ) : void

Sets the state of the event to signaled, allowing one or more waiting threads to proceed.

WaitOne ( ) : void

Blocks the current thread until Set or Dispose is called..

메소드 상세

Dispose() 공개 메소드

Releases all the resources used by the SafeManualResetEvent object. Also signals all waiting threads and ignores all calls to Reset.
public Dispose ( ) : void
리턴 void

Reset() 공개 메소드

Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
public Reset ( ) : void
리턴 void

SafeManualResetEvent() 공개 메소드

Creates a new SafeManualResetEvent
public SafeManualResetEvent ( bool signaledState ) : System
signaledState bool true to set the initial state signaled; false to set the initial state to nonsignaled.
리턴 System

Set() 공개 메소드

Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
public Set ( ) : void
리턴 void

WaitOne() 공개 메소드

Blocks the current thread until Set or Dispose is called..
public WaitOne ( ) : void
리턴 void