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.

31 lines
444 B

  1. /*++
  2. Copyright (C) 1996-2002 Microsoft Corporation
  3. Module Name:
  4. SYNC.HXX
  5. Abstract:
  6. Synchronization
  7. History:
  8. --*/
  9. #ifndef __TASKSCHED_CRITSEC2__H_
  10. #define __TASKSCHED_CRITSEC2__H_
  11. class CStaticCritSec : public CRITICAL_SECTION
  12. {
  13. private:
  14. bool initialized_;
  15. static BOOL anyFailed_;
  16. public:
  17. static BOOL anyFailure();
  18. CStaticCritSec();
  19. ~CStaticCritSec();
  20. };
  21. #endif