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
416 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. STLLOCK.CPP
  5. Abstract:
  6. Lock for STL
  7. History:
  8. --*/
  9. #include "precomp.h"
  10. #include <statsync.h>
  11. /*
  12. This file implements the STL lockit class to avoid linking to msvcprt.dll
  13. */
  14. CStaticCritSec g_cs;
  15. std::_Lockit::_Lockit()
  16. {
  17. g_cs.Enter();
  18. }
  19. std::_Lockit::~_Lockit()
  20. {
  21. g_cs.Leave();
  22. }