![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Definition at line 28 of file threadpool.h.
#include <threadpool.h>
Public Member Functions | |
| ThreadPool (int num_threads) | |
| ThreadPool (absl::string_view prefix, int num_threads) | |
| ~ThreadPool () | |
| void | StartWorkers () |
| void | Schedule (std::function< void()> closure) |
| std::function< void()> | GetNextTask () |
| void | SetQueueCapacity (int capacity) |
|
explicit |
Definition at line 32 of file threadpool.cc.
| operations_research::ThreadPool::ThreadPool | ( | absl::string_view | prefix, |
| int | num_threads ) |
Definition at line 34 of file threadpool.cc.
| operations_research::ThreadPool::~ThreadPool | ( | ) |
Definition at line 37 of file threadpool.cc.
| std::function< void()> operations_research::ThreadPool::GetNextTask | ( | ) |
Definition at line 62 of file threadpool.cc.
| void operations_research::ThreadPool::Schedule | ( | std::function< void()> | closure | ) |
Definition at line 83 of file threadpool.cc.
| void operations_research::ThreadPool::SetQueueCapacity | ( | int | capacity | ) |
Definition at line 49 of file threadpool.cc.
| void operations_research::ThreadPool::StartWorkers | ( | ) |
Definition at line 55 of file threadpool.cc.