10 #ifndef EIGEN_CXX11_THREADPOOL_THREAD_ENVIRONMENT_H 11 #define EIGEN_CXX11_THREADPOOL_THREAD_ENVIRONMENT_H 15 struct StlThreadEnvironment {
17 std::function<void()> f;
24 EnvThread(std::function<
void()> f) : thr_(
std::move(f)) {}
25 ~EnvThread() { thr_.join(); }
31 EnvThread* CreateThread(std::function<
void()> f) {
return new EnvThread(std::move(f)); }
32 Task CreateTask(std::function<
void()> f) {
return Task{std::move(f)}; }
33 void ExecuteTask(
const Task& t) { t.f(); }
38 #endif // EIGEN_CXX11_THREADPOOL_THREAD_ENVIRONMENT_H Namespace containing all symbols from the Eigen library.
Definition: AdolcForward:45
Definition: AutoDiffScalar.h:686