Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::ThreadPool Class Referenceabstract

Detailed Description

Definition at line 31 of file threadpool.h.

#include <threadpool.h>

Public Member Functions

 ThreadPool (int num_threads)
 ThreadPool (absl::string_view prefix, int num_threads)
 ~ThreadPool ()
void Schedule (absl::AnyInvocable< void() && > callback)

Constructor & Destructor Documentation

◆ ThreadPool() [1/2]

operations_research::ThreadPool::ThreadPool ( int num_threads)
explicit

Definition at line 33 of file threadpool.cc.

◆ ThreadPool() [2/2]

operations_research::ThreadPool::ThreadPool ( absl::string_view prefix,
int num_threads )

Definition at line 41 of file threadpool.cc.

◆ ~ThreadPool()

operations_research::ThreadPool::~ThreadPool ( )

Definition at line 44 of file threadpool.cc.

Member Function Documentation

◆ Schedule()

void operations_research::ThreadPool::Schedule ( absl::AnyInvocable< void() && > callback)

Definition at line 123 of file threadpool.cc.


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