mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-30 07:44:10 +08:00
Added the new threadpool cancel method to the threadpool interface based class.
This commit is contained in:
parent
7bfff85355
commit
69ef267a77
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user