TracktionEngine
Loading...
Searching...
No Matches
engine::BlockingFunction Struct Reference

#include <tracktion_AsyncFunctionUtils.h>

Inheritance diagram for engine::BlockingFunction:

Public Member Functions

 BlockingFunction (std::function< void()> f)
Public Member Functions inherited from engine::MessageThreadCallback
 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.

Constructor & Destructor Documentation

◆ BlockingFunction()

engine::BlockingFunction::BlockingFunction ( std::function< void()> f)

The documentation for this struct was generated from the following file: