Internal sub-system used by xiiIpcChannel.
More...
#include <MessageLoop.h>
|
void | AddChannel (xiiIpcChannel *pChannel) |
| Needs to be called by newly created channels' constructors.
|
|
void | RemoveChannel (xiiIpcChannel *pChannel) |
|
|
| XII_MAKE_SUBSYSTEM_STARTUP_FRIEND (Foundation, MessageLoop) |
|
void | StartUpdateThread () |
|
void | StopUpdateThread () |
|
void | RunLoop () |
|
bool | ProcessTasks () |
|
void | Quit () |
|
virtual void | WakeUp ()=0 |
| Wake up the message loop when new work comes in.
|
|
virtual bool | WaitForMessages (xiiInt32 iTimeout, xiiIpcChannel *pFilter)=0 |
| Waits until a new message has been processed (sent, received).
|
|
|
class | xiiLoopThread |
|
class | xiiIpcChannel |
|
Internal sub-system used by xiiIpcChannel.
This sub-system creates a background thread as soon as the first xiiIpcChannel is added to it. This class should never be needed to be accessed outside of xiiIpcChannel implementations.
◆ WaitForMessages()
virtual bool xiiMessageLoop::WaitForMessages |
( |
xiiInt32 | iTimeout, |
|
|
xiiIpcChannel * | pFilter ) |
|
protectedpure virtual |
Waits until a new message has been processed (sent, received).
- Parameters
-
timeout | If negative, wait indefinitely. |
pFilter | If not null, wait for a message for the specific channel. |
- Returns
- Returns whether a message was received or the timeout was reached.
Implemented in xiiMessageLoop_NoImpl.
◆ WakeUp()
virtual void xiiMessageLoop::WakeUp |
( |
| ) |
|
|
protectedpure virtual |
The documentation for this class was generated from the following files:
- /home/runner/work/XII/XII/Source/Engine/Foundation/Communication/Implementation/MessageLoop.h
- /home/runner/work/XII/XII/Source/Engine/Foundation/Communication/Implementation/MessageLoop.cpp