![]() |
Diarkis C++Client Library API Document
|
Implement this interface to be able to register to a scheduler for periodic update. More...
#include <Component.h>
Public Member Functions | |
virtual std::shared_ptr< IDiarkisEvent< void * > > | GetSchedulerAddNotifyEvent ()=0 |
An event handler when some event has been added to the scheduler. More... | |
virtual void | Update ()=0 |
Called on every runtime frame. More... | |
virtual bool | WaitCondition (std::chrono::milliseconds maxWait)=0 |
Called on every runtime frame. More... | |
Implement this interface to be able to register to a scheduler for periodic update.
|
pure virtual |
An event handler when some event has been added to the scheduler.
An event, for example, receiving the data, will be added to the event scheduler, and after that, the event will be propagated for each module by calling IDiarkisUdp::Update. Therefore, you should call IDiarkisUdp::Update immediately when this event happens if you want to process the event, like receiving data, as soon as fast.
Implemented in Diarkis::Modules::IDiarkisP2P.
|
pure virtual |
Called on every runtime frame.
|
pure virtual |
Called on every runtime frame.