Class ThreadController_NS::SimpleThreadController¶
-
template<typename
FutureReturnType
= void>
classSimpleThreadController
¶ Subclassed by ThreadController_NS::SimpleRunningThreadController< FutureReturnType >
Public Functions
-
SimpleThreadController
()¶
-
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¶
-
virtual int
getRunningThreadCount
() const¶
-
virtual void
checkThreadsStatus
()¶
-
virtual void
finish
()¶
Protected Functions
-
template<bool
future_return_void
= std::is_void<FutureReturnType>::value>
voidget_future
(std::future<FutureReturnType> &future, std::enable_if_t<future_return_void> * = 0)¶
-
template<bool
future_return_void
= std::is_void<FutureReturnType>::value>
voidget_future
(std::future<FutureReturnType> &future, std::enable_if_t<!future_return_void> * = 0)¶
-