Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
478 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. event.h
  5. Abstract:
  6. SIS Groveler sync event class header
  7. Authors:
  8. John Douceur, 1998
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef _INC_EVENT
  14. #define _INC_EVENT
  15. class SyncEvent
  16. {
  17. public:
  18. SyncEvent(
  19. bool initial_state,
  20. bool manual_reset);
  21. ~SyncEvent();
  22. bool set();
  23. bool reset();
  24. bool wait(
  25. unsigned int timeout);
  26. private:
  27. HANDLE event_handle;
  28. };
  29. #endif /* _INC_EVENT */