mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Added the new threadpool cancel method to the threadpool interface based class.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user