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

📄 messagequeue.h

📁 开发环境为VC++ 的数据库管理系统
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -