GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
TBB parallel execution policy. More...
#include <parallel_execution_tbb.h>
Public Member Functions | |
parallel_execution_tbb () noexcept | |
Default construct a TBB parallel execution policy. More... | |
parallel_execution_tbb (int concurrency_degree, bool order=true) noexcept | |
Constructs a TBB parallel execution policy. More... | |
void | set_concurrency_degree (int degree) noexcept |
Set number of grppi threads. More... | |
int | concurrency_degree () const noexcept |
Get number of grppi trheads. More... | |
void | enable_ordering () noexcept |
Enable ordering. More... | |
void | disable_ordering () noexcept |
Disable ordering. More... | |
bool | is_ordered () const noexcept |
Is execution ordered. More... | |
void | set_queue_attributes (int size, queue_mode mode, int tokens) noexcept |
Sets the attributes for the queues built through make_queue<T>() More... | |
template<typename T > | |
mpmc_queue< T > | make_queue () const |
Makes a communication queue for elements of type T. Constructs a queue using the attributes that can be set via set_queue_attributes(). The value is returned via move semantics. More... | |
int | tokens () const noexcept |
TBB parallel execution policy.
This policy uses Intel Threading Building Blocks as implementation back end.
|
inlinenoexcept |
Default construct a TBB parallel execution policy.
Creates a TBB parallel execution object.
The concurrency degree is determined by the platform.
|
inlinenoexcept |
Constructs a TBB parallel execution policy.
Creates a TBB parallel execution object selecting the concurrency degree.
concurrency_degree | Number of threads used for parallel algorithms. |
order | Whether ordered executions is enabled or disabled. |
|
inlinenoexcept |
Get number of grppi trheads.
|
inlinenoexcept |
Disable ordering.
|
inlinenoexcept |
Enable ordering.
|
inlinenoexcept |
Is execution ordered.
|
inline |
Makes a communication queue for elements of type T. Constructs a queue using the attributes that can be set via set_queue_attributes(). The value is returned via move semantics.
|
inlinenoexcept |
Set number of grppi threads.
|
inlinenoexcept |
Sets the attributes for the queues built through make_queue<T>()
|
inlinenoexcept |
Get num of tokens.