TracktionEngine
Public Member Functions | List of all members
tracktion::engine::MessageThreadCallback Class Referenceabstract

Calls a function on the message thread checking a calling thread for an exit signal. More...

Inheritance diagram for tracktion::engine::MessageThreadCallback:

Public Member Functions

 MessageThreadCallback ()=default
 
 ~MessageThreadCallback () override
 
bool hasFinished () const noexcept
 Returns true if the callback has completed. More...
 
void triggerAndWaitForCallback ()
 Triggers the callback to happen on the message thread and blocks until it has returned or the thread signals it should exit. More...
 
virtual void performAction ()=0
 

Detailed Description

Calls a function on the message thread checking a calling thread for an exit signal.

Constructor & Destructor Documentation

◆ MessageThreadCallback()

tracktion::engine::MessageThreadCallback::MessageThreadCallback ( )
default

◆ ~MessageThreadCallback()

tracktion::engine::MessageThreadCallback::~MessageThreadCallback ( )
override

Member Function Documentation

◆ hasFinished()

bool tracktion::engine::MessageThreadCallback::hasFinished ( ) const
noexcept

Returns true if the callback has completed.

Referenced by triggerAndWaitForCallback().

◆ 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: