Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::pdlp::GoogleThreadPoolScheduler Class Reference

Google3 ThreadPool scheduler with barrier synchronization. More...

#include <scheduler.h>

Inheritance diagram for operations_research::pdlp::GoogleThreadPoolScheduler:
operations_research::pdlp::Scheduler

Public Member Functions

 GoogleThreadPoolScheduler (int num_threads)
 
int num_threads () const override
 
std::string info_string () const override
 
void ParallelFor (int start, int end, absl::AnyInvocable< void(int)> do_func) override
 Calls do_func(i) in parallel for i from start to end-1.
 
- Public Member Functions inherited from operations_research::pdlp::Scheduler
virtual ~Scheduler ()=default
 

Detailed Description

Google3 ThreadPool scheduler with barrier synchronization.

Definition at line 46 of file scheduler.h.

Constructor & Destructor Documentation

◆ GoogleThreadPoolScheduler()

operations_research::pdlp::GoogleThreadPoolScheduler::GoogleThreadPoolScheduler ( int num_threads)
inline

Definition at line 48 of file scheduler.h.

Member Function Documentation

◆ info_string()

std::string operations_research::pdlp::GoogleThreadPoolScheduler::info_string ( ) const
inlineoverridevirtual

Implements operations_research::pdlp::Scheduler.

Definition at line 54 of file scheduler.h.

◆ num_threads()

int operations_research::pdlp::GoogleThreadPoolScheduler::num_threads ( ) const
inlineoverridevirtual

Implements operations_research::pdlp::Scheduler.

Definition at line 53 of file scheduler.h.

◆ ParallelFor()

void operations_research::pdlp::GoogleThreadPoolScheduler::ParallelFor ( int start,
int end,
absl::AnyInvocable< void(int)> do_func )
inlineoverridevirtual

Calls do_func(i) in parallel for i from start to end-1.

Implements operations_research::pdlp::Scheduler.

Definition at line 56 of file scheduler.h.


The documentation for this class was generated from the following file: