#include <thread_pool.h>
◆ ThreadPool() [1/2]
hwy::ThreadPool::ThreadPool |
( |
size_t | num_threads | ) |
|
|
inlineexplicit |
◆ ~ThreadPool()
hwy::ThreadPool::~ThreadPool |
( |
| ) |
|
|
inline |
◆ ThreadPool() [2/2]
hwy::ThreadPool::ThreadPool |
( |
const ThreadPool & | | ) |
|
|
delete |
◆ InternalMem()
PoolMem & hwy::ThreadPool::InternalMem |
( |
| ) |
const |
|
inline |
◆ MaxThreads()
static size_t hwy::ThreadPool::MaxThreads |
( |
| ) |
|
|
inlinestatic |
◆ NoInit()
static bool hwy::ThreadPool::NoInit |
( |
size_t | | ) |
|
|
inlinestatic |
◆ NumThreads()
size_t hwy::ThreadPool::NumThreads |
( |
| ) |
const |
|
inline |
◆ NumWorkers()
size_t hwy::ThreadPool::NumWorkers |
( |
| ) |
const |
|
inline |
◆ operator&()
◆ Run() [1/2]
template<class Closure >
void hwy::ThreadPool::Run |
( |
uint64_t | begin, |
|
|
uint64_t | end, |
|
|
const Closure & | closure ) |
|
inline |
◆ Run() [2/2]
template<class InitClosure , class RunClosure >
bool hwy::ThreadPool::Run |
( |
uint64_t | begin, |
|
|
uint64_t | end, |
|
|
const InitClosure & | init_closure, |
|
|
const RunClosure & | run_closure ) |
|
inline |
◆ SetWaitMode()
◆ ThreadFunc()
static void hwy::ThreadPool::ThreadFunc |
( |
size_t | thread, |
|
|
size_t | num_workers, |
|
|
PoolMem * | mem ) |
|
inlinestaticprivate |
◆ busy_
std::atomic<int> hwy::ThreadPool::busy_ {0} |
|
private |
◆ owner_
◆ threads_
std::vector<std::thread> hwy::ThreadPool::threads_ |
|
private |
The documentation for this class was generated from the following file: