OmniSciDB
a5dc49c757
|
#include <ThreadController.h>
Public Member Functions | |
SimpleRunningThreadController ()=delete | |
template<bool future_return_void = std::is_void<FutureReturnType>::value> | |
SimpleRunningThreadController (const int max_threads, std::enable_if_t< future_return_void > *=0) | |
template<bool future_return_void = std::is_void<FutureReturnType>::value> | |
SimpleRunningThreadController (const int max_threads, const FutureGetter< FutureReturnType > future_getter, std::enable_if_t<!future_return_void > *=0) | |
~SimpleRunningThreadController () override | |
int | notify_thread_is_completed () |
int | getRunningThreadCount () const override |
void | checkThreadsStatus () override |
template<typename FuncType , typename... Args> | |
int | startThread (FuncType &&func, Args &&...args) |
Public Member Functions inherited from ThreadController_NS::SimpleThreadController< FutureReturnType > | |
SimpleThreadController ()=delete | |
template<bool future_return_void = std::is_void<FutureReturnType>::value> | |
SimpleThreadController (const int max_threads, std::enable_if_t< future_return_void > *=0) | |
template<bool future_return_void = std::is_void<FutureReturnType>::value> | |
SimpleThreadController (const int max_threads, const FutureGetter< FutureReturnType > future_getter, std::enable_if_t<!future_return_void > *=0) | |
virtual | ~SimpleThreadController () |
virtual int | getThreadCount () const |
template<typename FuncType , typename... Args> | |
void | startThread (FuncType &&func, Args &&...args) |
virtual void | finish () |
Private Attributes | |
std::atomic< int > | n_running_threads_ |
Additional Inherited Members | |
Protected Member Functions inherited from ThreadController_NS::SimpleThreadController< FutureReturnType > | |
template<bool future_return_void = std::is_void<FutureReturnType>::value> | |
void | get_future (std::future< FutureReturnType > &future, std::enable_if_t< future_return_void > *=0) |
template<bool future_return_void = std::is_void<FutureReturnType>::value> | |
void | get_future (std::future< FutureReturnType > &future, std::enable_if_t<!future_return_void > *=0) |
Definition at line 100 of file ThreadController.h.
|
delete |
|
inline |
Definition at line 104 of file ThreadController.h.
|
inline |
Definition at line 108 of file ThreadController.h.
|
inlineoverride |
Definition at line 113 of file ThreadController.h.
|
inlineoverridevirtual |
Reimplemented from ThreadController_NS::SimpleThreadController< FutureReturnType >.
Definition at line 116 of file ThreadController.h.
References ThreadController_NS::SimpleThreadController< FutureReturnType >::checkThreadsStatus().
|
inlineoverridevirtual |
Reimplemented from ThreadController_NS::SimpleThreadController< FutureReturnType >.
Definition at line 115 of file ThreadController.h.
|
inline |
Definition at line 114 of file ThreadController.h.
|
inline |
Definition at line 120 of file ThreadController.h.
References run_benchmark_import::args, and ThreadController_NS::SimpleThreadController< FutureReturnType >::startThread().
|
private |
Definition at line 128 of file ThreadController.h.