?? event.h
字號:
#ifndef __EVENT_H__
#define __EVENT_H__
#pragma once
#include <windows.h>
#include "tstring.h"
namespace util{
class CEvent{ // 撈亥飄 包訪 扁瓷闌 力傍竅綽 努貳膠
private:
HANDLE m_hEvent; // 撈亥飄 按眉
public:
CEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState);
CEvent(LPSECURITY_ATTRIBUTES lpSecurityAttributes, BOOL manualReset, BOOL initialState, const _tstring& name);
CEvent(const CEvent& rhs);
CEvent& operator=(const CEvent& rhs);
virtual ~CEvent(void);
HANDLE GetEvent() const;
void Wait() const;
BOOL Wait(DWORD timeoutMillis) const;
void Reset();
void Set();
void Pulse();
};
}//End of namespace : util
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -