ASPiK SDK
|
Typedefs | |
using | Task = std::function< void()> |
Enumerations | |
enum | Context { Context::Main, Context::Background } |
Functions | |
void | perform (Context context, Task &&task) |
void | waitAllTasksDone () |
asynchronous tasks
|
strong |
void VSTGUI::Standalone::Async::perform | ( | Context | context, |
Task && | task | ||
) |
Schedule a task to be performed asynchronous either on a background thread or on the main thread.
Can be called from any thread, but should not be called from realtime constraint threads as it may involves locks and memory allocations
context | background or main thread |
task | task to be performed |