ezEngine  Release 25.03
ezMessageLoop_Fallback Class Reference
Inheritance diagram for ezMessageLoop_Fallback:

Protected Member Functions

virtual void WakeUp () override
 Wake up the message loop when new work comes in.
 
virtual bool WaitForMessages (ezInt32 iTimeout, ezIpcChannel *pFilter) override
 Waits until a new message has been processed (sent, received). More...
 
- Protected Member Functions inherited from ezMessageLoop
 EZ_MAKE_SUBSYSTEM_STARTUP_FRIEND (Foundation, MessageLoop)
 
void StartUpdateThread ()
 
void StopUpdateThread ()
 
void RunLoop ()
 
bool ProcessTasks ()
 
void Quit ()
 

Additional Inherited Members

- Public Member Functions inherited from ezMessageLoop
void AddChannel (ezIpcChannel *pChannel)
 Needs to be called by newly created channels' constructors.
 
void RemoveChannel (ezIpcChannel *pChannel)
 
- Protected Attributes inherited from ezMessageLoop
ezThreadID m_ThreadId = 0
 
ezMutex m_Mutex
 
bool m_bShouldQuit = false
 
bool m_bCallTickFunction = false
 
class ezLoopThread * m_pUpdateThread = nullptr
 
ezMutex m_TasksMutex
 
ezDynamicArray< ezIpcChannel * > m_ConnectQueue
 
ezDynamicArray< ezIpcChannel * > m_DisconnectQueue
 
ezDynamicArray< ezIpcChannel * > m_SendQueue
 
ezDynamicArray< ezIpcChannel * > m_ConnectQueueTask
 
ezDynamicArray< ezIpcChannel * > m_DisconnectQueueTask
 
ezDynamicArray< ezIpcChannel * > m_SendQueueTask
 
ezDynamicArray< ezIpcChannel * > m_AllAddedChannels
 

Member Function Documentation

◆ WaitForMessages()

bool ezMessageLoop_Fallback::WaitForMessages ( ezInt32  iTimeout,
ezIpcChannel pFilter 
)
overrideprotectedvirtual

Waits until a new message has been processed (sent, received).

Parameters
timeoutIf negative, wait indefinitely.
pFilterIf not null, wait for a message for the specific channel.
Returns
Returns whether a message was received or the timeout was reached.

Implements ezMessageLoop.


The documentation for this class was generated from the following files: