C# 클래스 Amib.Threading.Internal.EventWaitHandleFactory

EventWaitHandleFactory class. This is a static class that creates AutoResetEvent and ManualResetEvent objects. In WindowCE the WaitForMultipleObjects API fails to use the Handle property of XxxResetEvent. It can use only handles that were created by the CreateEvent API. Consequently this class creates the needed XxxResetEvent and replaces the handle if it's a WindowsCE OS.
파일 보기 프로젝트 열기: 3di/3di-viewer-rei-libs 1 사용 예제들

공개 메소드들

메소드 설명
CreateAutoResetEvent ( ) : AutoResetEvent

Create a new AutoResetEvent object

CreateManualResetEvent ( bool initialState ) : ManualResetEvent

Create a new ManualResetEvent object

비공개 메소드들

메소드 설명
CloseHandle ( IntPtr hObject ) : bool
CreateEvent ( IntPtr lpEventAttributes, bool bManualReset, bool bInitialState, string lpName ) : IntPtr
ReplaceEventHandle ( WaitHandle waitHandle, bool manualReset, bool initialState ) : void

Replace the event handle

메소드 상세

CreateAutoResetEvent() 공개 정적인 메소드

Create a new AutoResetEvent object
public static CreateAutoResetEvent ( ) : AutoResetEvent
리턴 System.Threading.AutoResetEvent

CreateManualResetEvent() 공개 정적인 메소드

Create a new ManualResetEvent object
public static CreateManualResetEvent ( bool initialState ) : ManualResetEvent
initialState bool
리턴 System.Threading.ManualResetEvent