⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmclcritsec.h

📁 window下的多线程编程参考书。值得一读
💻 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 + -