Searched defs:StlThreadEnvironment (Results 1 – 1 of 1) sorted by relevance
15 struct StlThreadEnvironment { struct16 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()