Files
ppsspp/ext/native/thread/executor.cpp

17 lines
281 B
C++
Raw Normal View History

#include "thread/executor.h"
#include <functional>
2018-04-12 20:30:12 -07:00
#include <thread>
namespace threading {
void SameThreadExecutor::Run(std::function<void()> func) {
2018-04-12 20:30:12 -07:00
func();
}
void NewThreadExecutor::Run(std::function<void()> func) {
std::thread(func).detach();
}
} // namespace threading