📄 cmclcritsec.h
字号:
//
// FILE: CMclCritSec.h
//
// Copyright (c) 1997 by Aaron Michael Cohen and Mike Woodring
//
/////////////////////////////////////////////////////////////////////////
#ifndef __CMCLCRITSEC_H__
#define __CMCLCRITSEC_H__
#include "CMclGlobal.h"
class CMclCritSec {
private:
CRITICAL_SECTION m_CritSec;
public:
// constructor creates a CRITICAL_SECTION inside
// the C++ object...
CMclCritSec(void);
// destructor...
virtual ~CMclCritSec();
// enter the critical section...
void Enter(void);
// leave the critical section...
void Leave(void);
// return a pointer to the internal
// critical section...
CRITICAL_SECTION *GetCritSec(void);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -