NativeEventCalls.cs 708 B

12345678910111213141516171819202122232425262728
  1. //
  2. // System.Threading.AutoResetEvent.cs
  3. //
  4. // Author:
  5. // Dick Porter ([email protected])
  6. // Veronica De Santis ([email protected])
  7. //
  8. // (C) Ximian, Inc. http://www.ximian.com
  9. //
  10. using System;
  11. using System.Runtime.CompilerServices;
  12. namespace System.Threading
  13. {
  14. internal sealed class NativeEventCalls
  15. {
  16. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  17. public static extern IntPtr CreateEvent_internal(bool manual,bool initial,string name);
  18. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  19. public static extern bool SetEvent_internal(IntPtr handle);
  20. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  21. public static extern bool ResetEvent_internal(IntPtr handle);
  22. }
  23. }