Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <ctpl.h>
|
std::vector< std::unique_ptr< std::thread > > | threads |
|
std::vector< std::shared_ptr< std::atomic< bool > > > | flags |
|
boost::lockfree::queue< std::function< void(int id)> * > | q |
|
std::atomic< bool > | isDone |
|
std::atomic< bool > | isStop |
|
std::atomic< int > | nWaiting |
|
std::mutex | mutex |
|
std::condition_variable | cv |
|
Definition at line 48 of file ctpl.h.
◆ thread_pool() [1/4]
ctpl::thread_pool::thread_pool |
( |
| ) |
|
|
inline |
◆ thread_pool() [2/4]
◆ ~thread_pool()
ctpl::thread_pool::~thread_pool |
( |
| ) |
|
|
inline |
◆ thread_pool() [3/4]
◆ thread_pool() [4/4]
◆ clear_queue()
void ctpl::thread_pool::clear_queue |
( |
| ) |
|
|
inline |
◆ get_thread()
std::thread& ctpl::thread_pool::get_thread |
( |
int |
i | ) |
|
|
inline |
◆ init()
void ctpl::thread_pool::init |
( |
| ) |
|
|
inlineprivate |
◆ n_idle()
int ctpl::thread_pool::n_idle |
( |
| ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pop()
std::function<void(int)> ctpl::thread_pool::pop |
( |
| ) |
|
|
inline |
Definition at line 106 of file ctpl.h.
References q.
◆ push() [1/2]
template<typename F , typename... Rest>
auto ctpl::thread_pool::push |
( |
F && |
f, |
|
|
Rest &&... |
rest |
|
) |
| -> std::future<decltype(f(0, rest...))> |
|
inline |
◆ push() [2/2]
template<typename F >
auto ctpl::thread_pool::push |
( |
F && |
f | ) |
-> std::future<decltype(f(0))> |
|
inline |
◆ resize()
void ctpl::thread_pool::resize |
( |
int |
nThreads | ) |
|
|
inline |
◆ set_thread()
void ctpl::thread_pool::set_thread |
( |
int |
i | ) |
|
|
inlineprivate |
◆ size()
int ctpl::thread_pool::size |
( |
| ) |
|
|
inline |
◆ stop()
void ctpl::thread_pool::stop |
( |
bool |
isWait = false | ) |
|
|
inline |
◆ cv
std::condition_variable ctpl::thread_pool::cv |
|
private |
◆ flags
std::vector<std::shared_ptr<std::atomic<bool> > > ctpl::thread_pool::flags |
|
private |
◆ isDone
std::atomic<bool> ctpl::thread_pool::isDone |
|
private |
◆ isStop
std::atomic<bool> ctpl::thread_pool::isStop |
|
private |
◆ mutex
std::mutex ctpl::thread_pool::mutex |
|
private |
◆ nWaiting
std::atomic<int> ctpl::thread_pool::nWaiting |
|
private |
boost::lockfree::queue<std::function<void(int id)> *> ctpl::thread_pool::q |
|
mutableprivate |
◆ threads
std::vector<std::unique_ptr<std::thread> > ctpl::thread_pool::threads |
|
private |
The documentation for this class was generated from the following file: