Home
last modified time | relevance | path

Searched defs:StlThreadEnvironment (Results 1 – 1 of 1) sorted by relevance

/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/
DThreadEnvironment.h15 struct StlThreadEnvironment { struct
16 struct Task {
24 EnvThread(std::function<void()> f) : thr_(std::move(f)) {} in EnvThread()
25 ~EnvThread() { thr_.join(); } in ~EnvThread()
31 EnvThread* CreateThread(std::function<void()> f) { return new EnvThread(std::move(f)); } in CreateThread()
32 Task CreateTask(std::function<void()> f) { return Task{std::move(f)}; } in CreateTask()
33 void ExecuteTask(const Task& t) { t.f(); } in ExecuteTask()