enhance support for multi-threading environment

This commit is contained in:
Jinhao
2016-04-08 23:10:00 +08:00
parent ca1e7810c7
commit 5f870bcf69
10 changed files with 182 additions and 82 deletions

View File

@@ -179,6 +179,11 @@ namespace API
namespace dev
{
void affinity_execute(window window_handle, const std::function<void()>& fn)
{
interface_type::affinity_execute(root(window_handle), fn);
}
bool set_events(window wd, const std::shared_ptr<general_events>& gep)
{
auto iwd = reinterpret_cast<basic_window*>(wd);