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.

36 lines
687 B

  1. /*
  2. *
  3. * REVISIONS:
  4. * pcy16Jul93: Added NT semaphores
  5. * ash10Jun96: Cleaned up the class - overloaded the constructor
  6. * and added logic to handle interprocess synchronization
  7. *
  8. */
  9. #ifndef __MUTEXNT_H
  10. #define __MUTEXNT_H
  11. #include <tchar.h>
  12. #include "mutexlck.h"
  13. _CLASSDEF( ApcMutexLock )
  14. class ApcMutexLock : public MutexLock
  15. {
  16. protected:
  17. HANDLE theSemHand;
  18. public:
  19. ApcMutexLock();
  20. ApcMutexLock(PCHAR aUniqueMutexName);
  21. ~ApcMutexLock();
  22. virtual INT GetExistingMutex(TCHAR aMutexName);
  23. virtual INT TimedRequest(LONG aMillisecondTimeOut);
  24. virtual INT IsHeld();
  25. virtual INT Release();
  26. virtual INT Wait();
  27. };
  28. #endif