cmclcritsec.h
来自「window下的多线程编程参考书。值得一读」· C头文件 代码 · 共 36 行
H
36 行
//
// 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 + =
减小字号Ctrl + -
显示快捷键?