diff --git a/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h b/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h index a65ee97c9..5935b7cd8 100644 --- a/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +++ b/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h @@ -16,8 +16,12 @@ namespace Eigen { // custom thread pools underneath. class ThreadPoolInterface { public: + // Submits a closure to be run by a thread in the pool. virtual void Schedule(std::function fn) = 0; + // Cancel all the threads in the pool. + virtual void Cancel() = 0; + // Returns the number of threads in the pool. virtual int NumThreads() const = 0;