messagequeue.h

来自「开发环境为VC++ 的数据库管理系统」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef _MESSAGE_QUEUE
#define _MESSAGE_QUEUE

#include <afxtempl.h>
#include <afxmt.h>
typedef struct
{
	CWinThread *pthread;
	UINT message;
	bool waiting;
	CString strNote;
	int waitEventNum;
	int varSpare;
}THREAD_MSG;
class MESSAGE_QUEUE
{
private:
	CList<THREAD_MSG,THREAD_MSG &> m_msg_list;
	CCriticalSection m_section;
public:
	MESSAGE_QUEUE();
	~MESSAGE_QUEUE();
	bool IsEmpty(void);
	void GetHead(THREAD_MSG & msg);
	void AddTail(CWinThread *pthread,UINT message,bool waiting,CString strNote,int eventNum,int varSpare);
	void RemoveHead(void);
};
#endif

⌨️ 快捷键说明

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