?? hmutex.h
字號:
#ifndef H_MUTEX_H
#define H_MUTEX_H 1
//////////////////////////////////////////////////////////////
//文件名 : HMutex.h
//功能 :互折類,應(yīng)用于Windows 和 Linux兩種系統(tǒng)
//創(chuàng)建 : 2004.4.8
//作者 : 韓國靜
//
#include "UniThread.h"
class CHMutex
{
protected:
UNI_Mutex m_Mutex; //互折對象句柄
public:
/////////////////互折操作////////////////////////////
//進入互折區(qū)
void Lock(){UNI_LockMutex(&m_Mutex);};
//離開互折區(qū)
void UnLock(){UNI_UnLockMutex(&m_Mutex);};
CHMutex(){UNI_InitializeMutex(&m_Mutex);};
~CHMutex(){UNI_DestroyMutex(&m_Mutex);};
};
/////////////////////////////////////////////////////////
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -