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.

37 lines
562 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. SYNC.H
  5. Abstract:
  6. Synchronization
  7. History:
  8. --*/
  9. #ifndef __WBEM_CRITSEC2__H_
  10. #define __WBEM_CRITSEC2__H_
  11. #include "corepol.h"
  12. #include <corex.h>
  13. class POLARITY CStaticCritSec : public CRITICAL_SECTION
  14. {
  15. private:
  16. bool initialized_;
  17. static BOOL anyFailed_;
  18. public:
  19. static BOOL anyFailure();
  20. static void SetFailure();
  21. CStaticCritSec();
  22. ~CStaticCritSec();
  23. void Enter();
  24. void Leave();
  25. };
  26. #endif