![]() |
RAMSES Documentation
27.0.130
Information for RAMSES users and developers
|
#include <IThreadWatchdogNotification.h>
Public Member Functions | |
virtual | ~IThreadWatchdogNotification ()=default |
virtual void | notifyThread (ERamsesThreadIdentifier threadID)=0 |
virtual void | registerThread (ERamsesThreadIdentifier threadID)=0 |
virtual void | unregisterThread (ERamsesThreadIdentifier threadID)=0 |
Users can implement this callback to receive alive notifications about ramses threads.
In order to receive alive notification of ramses threads, one must provide a pointer to an implementation of this interface to RamsesFrameworkConfig::setWatchdogNotificationCallBack Before calling notifyThread with a certain threadID a registerThread call for that id will be invoked. Before stopping notifications of a certain threadID the unregisterThread method will be invoked - therefore do not expect alive messages for a certain threadID after an unregisterThread call for that threadID.
|
virtualdefault |
Virtual destructor of IThreadWatchdogNotification
|
pure virtual |
This method is invoked cyclic with threadID of alive threads.
The method is invoked from the actual thread context in question, therefore users must take care not to call long operations in this callback, or ramses processing will be blocked.
[in] | threadID | ID of thread reporting it being alive. |
|
pure virtual |
Before reporting alive messages of a certain threadID, this method will be called with that specific threadID. Do not expect notifyThread calls for threadID before this method was invoked.
[in] | threadID | ID of thread that will be reported. |
|
pure virtual |
Before stopping to report alive messages of a certain threadID, this method will be called with that specific threadID. Do not expect notifyThread calls for threadID after this method was invoked.
[in] | threadID | ID of thread that will not report anymore. |