Leaked source code of windows server 2003
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.

41 lines
814 B

  1. /*
  2. *
  3. * REVISIONS:
  4. * jwa 09FEB93 created
  5. * pcy06Mar93: Added TimedRequest member function
  6. * pcy21Apr93: OS2 FE merge
  7. * srt21Jun96: Added named shared event type semaphores
  8. *
  9. */
  10. #ifndef __APCSEMAPHOR_H
  11. #define __APCSEMAPHOR_H
  12. #include "semaphor.h"
  13. #define INCL_DOSSEMAPHORES
  14. #define INCL_NOPMAPI
  15. #include <windows.h>
  16. #include <tchar.h>
  17. _CLASSDEF( ApcSemaphore )
  18. class ApcSemaphore : public Semaphore {
  19. private:
  20. HANDLE SemHand; // This is the handle returned by the Nt create Mutex function
  21. public:
  22. ApcSemaphore();
  23. ApcSemaphore( TCHAR * anEventName);
  24. virtual ~ApcSemaphore();
  25. virtual INT Post();
  26. virtual INT Clear();
  27. virtual INT IsPosted();
  28. virtual INT TimedWait( LONG aTimeOut ); // 0, <0 (block), n>0
  29. };
  30. #endif