![]() |
OR-Tools
8.2
|
Definition at line 26 of file threadpool.h.
Public Member Functions | |
ThreadPool (const std::string &prefix, int num_threads) | |
~ThreadPool () | |
void | StartWorkers () |
void | Schedule (std::function< void()> closure) |
std::function< void()> | GetNextTask () |
void | SetQueueCapacity (int capacity) |
ThreadPool | ( | const std::string & | prefix, |
int | num_threads | ||
) |
Definition at line 28 of file threadpool.cc.
~ThreadPool | ( | ) |
Definition at line 31 of file threadpool.cc.
std::function< void()> GetNextTask | ( | ) |
Definition at line 56 of file threadpool.cc.
void Schedule | ( | std::function< void()> | closure | ) |
Definition at line 77 of file threadpool.cc.
void SetQueueCapacity | ( | int | capacity | ) |
Definition at line 43 of file threadpool.cc.
void StartWorkers | ( | ) |
Definition at line 49 of file threadpool.cc.