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

/*++
Copyright (C) 1996-2001 Microsoft Corporation
Module Name:
STLLOCK.CPP
Abstract:
Lock for STL
History:
--*/
#include "precomp.h"
#include <statsync.h>
/*
This file implements the STL lockit class to avoid linking to msvcprt.dll
*/
CStaticCritSec g_cs;
std::_Lockit::_Lockit()
{
g_cs.Enter();
}
std::_Lockit::~_Lockit()
{
g_cs.Leave();
}