mirror of https://github.com/lianthony/NT4.0
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.
35 lines
672 B
35 lines
672 B
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1996.
|
|
//
|
|
// File: cmonitor.cxx
|
|
//
|
|
// Contents: Class that implements a monitor
|
|
//
|
|
//
|
|
// History: 21-May-96 t-AdamE Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#include "cmonitor.hxx"
|
|
|
|
CMonitor::CMonitor()
|
|
{
|
|
InitializeCriticalSection(&m_crsmon);
|
|
}
|
|
|
|
CMonitor::~CMonitor()
|
|
{
|
|
DeleteCriticalSection(&m_crsmon);
|
|
}
|
|
|
|
void CMonitor::EnterMonitor()
|
|
{
|
|
EnterCriticalSection(&m_crsmon);
|
|
}
|
|
|
|
void CMonitor::LeaveMonitor()
|
|
{
|
|
LeaveCriticalSection(&m_crsmon);
|
|
}
|