scopeguardmutex.h

来自「This source can emulate function generat」· C头文件 代码 · 共 25 行

H
25
字号
#ifndef _SCOPEGUARDMUTEX_INCLUDED
#define _SCOPEGUARDMUTEX_INCLUDED

#include <windows.h>

/********************************************
  
  Release the mutex when the object is destroyed.  

  Guaranty that the mutex will be released...

********************************************/
class ScopeGuardMutex
{
	class Mutex *m_pMutex;

public:

	ScopeGuardMutex(Mutex *pMutex);
	~ScopeGuardMutex();
};



#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?