update android project
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user