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.

51 lines
500 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. mutex.h
  5. Abstract:
  6. SIS Groveler named mutex class header
  7. Authors:
  8. John Douceur, 1998
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef _INC_MUTEX
  14. #define _INC_MUTEX
  15. class NamedMutex
  16. {
  17. public:
  18. NamedMutex(
  19. const _TCHAR *name,
  20. SECURITY_ATTRIBUTES *security_attributes = 0);
  21. ~NamedMutex();
  22. bool release();
  23. bool acquire(
  24. unsigned int timeout);
  25. private:
  26. HANDLE mutex_handle;
  27. };
  28. #endif /* _INC_MUTEX */