Internal sub-system used by plIpcChannel.
More...
#include <MessageLoop.h>
|
void | AddChannel (plIpcChannel *pChannel) |
| Needs to be called by newly created channels' constructors.
|
|
void | RemoveChannel (plIpcChannel *pChannel) |
|
|
| PL_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 (plInt32 iTimeout, plIpcChannel *pFilter)=0 |
| Waits until a new message has been processed (sent, received).
|
|
|
class | plLoopThread |
|
class | plIpcChannel |
|
Internal sub-system used by plIpcChannel.
This sub-system creates a background thread as soon as the first plIpcChannel is added to it. This class should never be needed to be accessed outside of plIpcChannel implementations.
◆ WaitForMessages()
virtual bool plMessageLoop::WaitForMessages |
( |
plInt32 | iTimeout, |
|
|
plIpcChannel * | 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 plMessageLoop_Fallback.
◆ WakeUp()
virtual void plMessageLoop::WakeUp |
( |
| ) |
|
|
protectedpure virtual |
The documentation for this class was generated from the following files:
- Code/Engine/Foundation/Communication/Implementation/MessageLoop.h
- Code/Engine/Foundation/Communication/Implementation/MessageLoop.cpp