Collapsed revision

* Merged eigen/eigen into default
This commit is contained in:
Ravi Kiran
2018-09-17 18:29:12 -07:00
parent 03a88c57e1
commit 1f0c941c3d
3 changed files with 222 additions and 62 deletions

View File

@@ -19,6 +19,15 @@ class ThreadPoolInterface {
// Submits a closure to be run by a thread in the pool.
virtual void Schedule(std::function<void()> fn) = 0;
// Submits a closure to be run by threads in the range [start, end) in the
// pool.
virtual void ScheduleWithHint(std::function<void()> fn, int start,
int end) {
// Just defer to Schedule in case sub-classes aren't interested in
// overriding this functionality.
Schedule(fn);
}
// If implemented, stop processing the closures that have been enqueued.
// Currently running closures may still be processed.
// If not implemented, does nothing.