![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Thread scheduling interface. More...
#include <scheduler.h>
Public Member Functions | |
virtual | ~Scheduler ()=default |
virtual int | num_threads () const =0 |
virtual std::string | info_string () const =0 |
virtual void | ParallelFor (int start, int end, absl::AnyInvocable< void(int)> do_func)=0 |
Calls do_func(i) in parallel for i from start to end-1 . | |
Thread scheduling interface.
Definition at line 34 of file scheduler.h.
|
virtualdefault |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Calls do_func(i)
in parallel for i
from start
to end-1
.
Implemented in operations_research::pdlp::EigenThreadPoolScheduler, and operations_research::pdlp::GoogleThreadPoolScheduler.