#include <CATMsgThread.h>
CATMsgThread is the class to inherit from when you want a thread that responds to messages and has a periodic loop.
Definition at line 27 of file CATMsgThread.h.
Public Member Functions | |
CATMsgThread () | |
Thread construction. | |
virtual | ~CATMsgThread () |
Thread destruction. | |
virtual bool | Start (CATUInt32 pollFreq) |
Start a thread. | |
virtual void | Stop (CATUInt32 timeout=(CATUInt32)-1) |
Stop a thread, cleanly if possible. | |
virtual void | OnThreadIdle () |
Called once per timeout. | |
virtual CATUInt32 | OnThreadMessage (CATUInt32 msg, CATUInt32 wParam, CATUInt32 lParam) |
Called when messages are received. | |
bool | Post (CATUInt32 msg, CATUInt32 wParam, CATUInt32 lParam) |
Posts a message to the thread. | |
Protected Member Functions | |
virtual void | ThreadFunction () |
Protected Attributes | |
CATUInt32 | fPollFreq |
CATSignal | fExitSignal |