Pothos
0.4.1-gb758ed46
The Pothos dataflow programming software suite
|
#include <ThreadPool.hpp>
Public Member Functions | |
ThreadPool (void) | |
Create a null ThreadPool. More... | |
ThreadPool (const std::shared_ptr< void > &) | |
Create a ThreadPool from an opaque shared_ptr. More... | |
ThreadPool (const ThreadPoolArgs &args) | |
operator bool (void) const | |
const std::shared_ptr< void > & | getContainer (void) const |
A ThreadPool manages a group of threads that perform work in a Topology. Not only can users configure the number of threads, but there are a variety of other settings such as affinity, real-time priority, and internal threading mechanisms.
The thread pool can operate in two major modes:
Pothos::ThreadPool::ThreadPool | ( | void | ) |
Create a null ThreadPool.
Pothos::ThreadPool::ThreadPool | ( | const std::shared_ptr< void > & | ) |
Create a ThreadPool from an opaque shared_ptr.
Pothos::ThreadPool::ThreadPool | ( | const ThreadPoolArgs & | args | ) |
Create a new ThreadPool from args.
args | the configuration struct |
ThreadPoolError | on bad values |
const std::shared_ptr<void>& Pothos::ThreadPool::getContainer | ( | void | ) | const |
Get access to the underlying container for the thread pool.
|
explicit |
Is this thread pool valid/non-empty?