update android project

This commit is contained in:
2019-07-11 13:34:21 +02:00
parent d453e854b1
commit 92dd00d910
3 changed files with 49 additions and 40 deletions

View File

@@ -276,7 +276,6 @@ public:
template<typename T, typename R = void>
std::future<R> render_task_async(T task)
{
#ifdef _WIN32
std::packaged_task<R()> pt(task);
std::future<R> f = pt.get_future();
if (is_render_thread())
@@ -292,13 +291,11 @@ public:
render_cv.notify_all();
}
return f;
#endif // _WIN32
}
template<typename T, typename R = void>
R render_task(T task)
{
#ifdef _WIN32
std::packaged_task<R()> pt(task);
std::future<R> f = pt.get_future();
if (is_render_thread())
@@ -314,7 +311,6 @@ public:
render_cv.notify_all();
}
return render_running ? f.get() : R();
#endif // _WIN32
}
void render_sync()