C# Class Amib.Threading.Internal.EventWaitHandle

EventWaitHandle class In WindowsCE this class doesn't exist and I needed the WaitAll and WaitAny implementation. So I wrote this class to implement these two methods with some of their overloads. It uses the WaitForMultipleObjects API to do the WaitAll and WaitAny. Note that this class doesn't even inherit from WaitHandle!
Datei anzeigen Open project: 3di/3di-viewer-rei-libs

Public Methods

Method Description
WaitAll ( WaitHandle waitHandles, int millisecondsTimeout, bool exitContext ) : bool
WaitAny ( WaitHandle waitHandles ) : int
WaitAny ( WaitHandle waitHandles, System.TimeSpan timeout, bool exitContext ) : int
WaitAny ( WaitHandle waitHandles, int millisecondsTimeout, bool exitContext ) : int

Private Methods

Method Description
PrepareNativeHandles ( WaitHandle waitHandles ) : System.IntPtr[]
WaitForMultipleObjects ( uint nCount, IntPtr lpHandles, bool fWaitAll, uint dwMilliseconds ) : int

Method Details

WaitAll() public static method

public static WaitAll ( WaitHandle waitHandles, int millisecondsTimeout, bool exitContext ) : bool
waitHandles System.Threading.WaitHandle
millisecondsTimeout int
exitContext bool
return bool

WaitAny() public static method

public static WaitAny ( WaitHandle waitHandles ) : int
waitHandles System.Threading.WaitHandle
return int

WaitAny() public static method

public static WaitAny ( WaitHandle waitHandles, System.TimeSpan timeout, bool exitContext ) : int
waitHandles System.Threading.WaitHandle
timeout System.TimeSpan
exitContext bool
return int

WaitAny() public static method

public static WaitAny ( WaitHandle waitHandles, int millisecondsTimeout, bool exitContext ) : int
waitHandles System.Threading.WaitHandle
millisecondsTimeout int
exitContext bool
return int