mirror of https://github.com/tongzx/nt5src
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.
28 lines
515 B
28 lines
515 B
//***************************************************************************
|
|
|
|
//
|
|
|
|
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
|
|
//
|
|
// StlLock.cpp
|
|
//
|
|
// Purpose: implements the STL lockit class to avoid linking to msvcprt.dll
|
|
//
|
|
//***************************************************************************
|
|
|
|
#include "precomp.h"
|
|
#include <stllock.h>
|
|
|
|
__declspec(dllexport) CCritSec g_cs;
|
|
|
|
std::_Lockit::_Lockit()
|
|
{
|
|
g_cs.Enter();
|
|
}
|
|
|
|
std::_Lockit::~_Lockit()
|
|
{
|
|
g_cs.Leave();
|
|
}
|
|
|
|
|