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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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