Public Member Functions | |
| EventThread (const String &szName) | |
| virtual | ~EventThread () |
| int | Run () |
| virtual bool | Work () |
| virtual bool | HandleMessage (const Message *pMessage) |
| EventQueue * | GetEventQueue () |
| virtual bool | Kill () |
Public Attributes | |
| Private * | m |
Classes | |
| class | Private |
class MyEventThread : public EventThread { public: MyEventThread(const String& szName); bool HandleMessage(const Message *pMessage); bool Work(); }; MyEventThread::MyEventThread(const String& szName) : EventThread(szName) { } bool MyEventThread::Work() { // Do Idle work here. If more work should be done, return true, else false. If false is returned to EventThread will wait // for messages and block this thread. If true is returned the EventThread will only process a waiting message (if there is one) // and call this work function again. } bool MyEventThread::HandleMessage(const Message *pMessage) { // handle message directed to this thread return EventThread::HandleMessage(pMessage); }
| EventThread::EventThread | ( | const String & | szName | ) |
| EventThread::~EventThread | ( | ) | [virtual] |
| int EventThread::Run | ( | ) | [virtual] |
Implements SkyGI::Thread.
| bool EventThread::Work | ( | ) | [virtual] |
| bool EventThread::HandleMessage | ( | const Message * | pMessage | ) | [virtual] |
| EventQueue * EventThread::GetEventQueue | ( | ) |
| bool EventThread::Kill | ( | ) | [virtual] |
Reimplemented from SkyGI::Thread.
1.5.1-p1