diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-12-08 14:03:25 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-12-08 14:03:25 -0800 |
commit | 69ef267a77c1259133793c017c2f95f5378d11be (patch) | |
tree | 8e5aaf25cb482284aaf3df26bbc5f0292a218435 /unsupported | |
parent | 7bfff85355215a4702d4d42b1f3bfbfc08977372 (diff) |
Added the new threadpool cancel method to the threadpool interface based class.
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<void()> 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; |