Calls a function on the message thread checking a calling thread for an exit signal.
More...
#include <tracktion_AsyncFunctionUtils.h>
Calls a function on the message thread checking a calling thread for an exit signal.
◆ MessageThreadCallback()
tracktion::engine::MessageThreadCallback::MessageThreadCallback |
( |
| ) |
|
|
default |
◆ ~MessageThreadCallback()
tracktion::engine::MessageThreadCallback::~MessageThreadCallback |
( |
| ) |
|
|
override |
◆ hasFinished()
bool tracktion::engine::MessageThreadCallback::hasFinished |
( |
| ) |
const |
|
noexcept |
◆ triggerAndWaitForCallback()
void tracktion::engine::MessageThreadCallback::triggerAndWaitForCallback |
( |
| ) |
|
Triggers the callback to happen on the message thread and blocks until it has returned or the thread signals it should exit.
References hasFinished().
◆ performAction()
virtual void tracktion::engine::MessageThreadCallback::performAction |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: