#include <threads.h>
|
template<typename Function > |
static void | _ParallelSections (std::future< void > *futures, const Function &function) |
|
template<typename Function , typename ... Functions> |
static void | _ParallelSections (std::future< void > *futures, const Function &function, const Functions &... functions) |
|
static void | _ThreadInitFunction (unsigned int thread) |
|
◆ ParallelType
Enumerator |
---|
NONE | |
THREAD_POOL | |
ASYNC | |
◆ ScheduleType
◆ ThreadPool()
◆ _ParallelSections() [1/2]
template<typename Function >
static void ThreadPool::_ParallelSections |
( |
std::future< void > * |
futures, |
|
|
const Function & |
function |
|
) |
| |
|
inlinestaticprivate |
◆ _ParallelSections() [2/2]
template<typename Function , typename ... Functions>
static void ThreadPool::_ParallelSections |
( |
std::future< void > * |
futures, |
|
|
const Function & |
function, |
|
|
const Functions &... |
functions |
|
) |
| |
|
inlinestaticprivate |
◆ _ThreadInitFunction()
void ThreadPool::_ThreadInitFunction |
( |
unsigned int |
thread | ) |
|
|
inlinestaticprivate |
◆ Init()
void ThreadPool::Init |
( |
ParallelType |
parallelType, |
|
|
unsigned int |
numThreads = std::thread::hardware_concurrency() |
|
) |
| |
|
static |
◆ NumThreads()
unsigned int ThreadPool::NumThreads |
( |
void |
| ) |
|
|
static |
◆ operator=()
◆ Parallel_for()
◆ ParallelSections()
template<typename ... Functions>
static void ThreadPool::ParallelSections |
( |
const Functions &... |
functions | ) |
|
|
inlinestatic |
◆ Terminate()
void ThreadPool::Terminate |
( |
void |
| ) |
|
|
static |
◆ _Close
◆ _DoneWithWork
std::condition_variable ThreadPool::_DoneWithWork |
|
staticprivate |
◆ _Mutex
std::mutex ThreadPool::_Mutex |
|
staticprivate |
◆ _ParallelType
◆ _RemainingTasks
unsigned int ThreadPool::_RemainingTasks |
|
staticprivate |
◆ _ThreadFunction
std::function< void(unsigned int) > ThreadPool::_ThreadFunction |
|
staticprivate |
◆ _Threads
std::vector< std::thread > ThreadPool::_Threads |
|
staticprivate |
◆ _WaitingForWorkOrClose
std::condition_variable ThreadPool::_WaitingForWorkOrClose |
|
staticprivate |
◆ DefaultChunkSize
size_t ThreadPool::DefaultChunkSize = 128 |
|
static |
◆ DefaultSchedule
◆ ParallelNames
const std::vector< std::string > ThreadPool::ParallelNames |
|
static |
Initial value:=
{
"none" ,
"thread pool" ,
"async"
}
◆ ScheduleNames
const std::vector< std::string > ThreadPool::ScheduleNames = { "static" , "dynamic" } |
|
static |
The documentation for this struct was generated from the following files: