Calls a function on the message thread checking a calling thread for an exit signal.
More...
#include <tracktion_AsyncFunctionUtils.h>
|
| | MessageThreadCallback ()=default |
| |
| virtual | ~MessageThreadCallback () |
| | Blocks until any in-flight callback has finished and prevents a pending one from starting, so the message thread can never touch a dangling this.
|
| |
| bool | hasFinished () const noexcept |
| | Returns true if the callback has completed.
|
| |
| void | triggerAndWaitForCallback () |
| | Triggers the callback to happen on the message thread and blocks until it has returned or the thread signals it should exit.
|
| |
| virtual void | performAction ()=0 |
| |
Calls a function on the message thread checking a calling thread for an exit signal.
◆ MessageThreadCallback()
| engine::MessageThreadCallback::MessageThreadCallback |
( |
| ) |
|
|
default |
◆ ~MessageThreadCallback()
| virtual engine::MessageThreadCallback::~MessageThreadCallback |
( |
| ) |
|
|
virtual |
Blocks until any in-flight callback has finished and prevents a pending one from starting, so the message thread can never touch a dangling this.
◆ hasFinished()
| bool engine::MessageThreadCallback::hasFinished |
( |
| ) |
const |
|
noexcept |
◆ triggerAndWaitForCallback()
| void engine::MessageThreadCallback::triggerAndWaitForCallback |
( |
| ) |
|
◆ performAction()
| virtual void engine::MessageThreadCallback::performAction |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: