Files
ppsspp/ext/native/thread/executor.cpp
2018-06-07 14:11:52 -07:00

17 lines
281 B
C++

#include "thread/executor.h"
#include <functional>
#include <thread>
namespace threading {
void SameThreadExecutor::Run(std::function<void()> func) {
func();
}
void NewThreadExecutor::Run(std::function<void()> func) {
std::thread(func).detach();
}
} // namespace threading