asynchronous tasks
More...
|
using | Task = std::function< void()> |
|
|
void | perform (Context context, Task &&task) |
| Schedule a task to be performed asynchronous either on a background thread or on the main thread. More...
|
|
using Task = std::function<void ()> |
Asynchronous context.
Enumerator |
---|
Main |
Main thread context.
|
Background |
Background thread context.
|
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
- Parameters
-
context | background or main thread |
task | task to be performed |