STPEventWaitHandle.cs 948 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Threading;
  3. namespace Amib.Threading.Internal
  4. {
  5. internal static class STPEventWaitHandle
  6. {
  7. public const int WaitTimeout = Timeout.Infinite;
  8. internal static bool WaitAll(WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext)
  9. {
  10. return WaitHandle.WaitAll(waitHandles, millisecondsTimeout, exitContext);
  11. }
  12. internal static int WaitAny(WaitHandle[] waitHandles)
  13. {
  14. return WaitHandle.WaitAny(waitHandles);
  15. }
  16. internal static int WaitAny(WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext)
  17. {
  18. return WaitHandle.WaitAny(waitHandles, millisecondsTimeout, exitContext);
  19. }
  20. internal static bool WaitOne(WaitHandle waitHandle, int millisecondsTimeout, bool exitContext)
  21. {
  22. return waitHandle.WaitOne(millisecondsTimeout, exitContext);
  23. }
  24. }
  25. }