mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
32 lines
No EOL
492 B
C++
32 lines
No EOL
492 B
C++
#ifndef _THREADMSG_H_
|
|
#define _THREADMSG_H_
|
|
|
|
#ifdef WIN32
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
class CThreadMsg
|
|
{
|
|
public:
|
|
struct MESSAGE
|
|
{
|
|
unsigned int nMsg;
|
|
unsigned int nRetValue;
|
|
void* pParam;
|
|
};
|
|
CThreadMsg();
|
|
~CThreadMsg();
|
|
unsigned int SendMessage(unsigned int, void*);
|
|
bool GetMessage(MESSAGE*);
|
|
void FlushMessage(unsigned int);
|
|
bool IsMessagePending();
|
|
|
|
private:
|
|
#ifdef WIN32
|
|
HANDLE m_hEvent;
|
|
#endif
|
|
MESSAGE m_Msg;
|
|
bool m_nMessage;
|
|
};
|
|
|
|
#endif |