ASPiK SDK
iasync.h
1
// This file is part of VSTGUI. It is subject to the license terms
2
// in the LICENSE file found in the top-level directory of this
3
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4
5
#pragma once
6
7
#include "fwd.h"
8
#include <functional>
9
10
//------------------------------------------------------------------------
11
namespace
VSTGUI
{
12
namespace
Standalone {
16
namespace
Async {
17
18
using
Task = std::function<void ()>;
19
20
//------------------------------------------------------------------------
22
enum class
Context
23
{
25
Main
,
27
Background
28
};
29
30
//------------------------------------------------------------------------
40
void
perform
(
Context
context, Task&& task);
41
42
//------------------------------------------------------------------------
43
}
// Async
44
}
// Standalone
45
}
// VSTGUI
VSTGUI::Standalone::Async::Context
Context
Definition:
iasync.h:22
VSTGUI::Standalone::Async::perform
void perform(Context context, Task &&task)
Definition:
macasync.mm:29
VSTGUI
Definition:
customcontrols.cpp:8
VSTGUI::Standalone::Async::Context::Main
VSTGUI::Standalone::Async::Context::Background
vstgui4
vstgui
standalone
include
iasync.h
Generated by
1.8.14