![]() |
Section for the debugging of the shared-memory parallelization.The ParallelSection class is an auxiliary helper class for the BLAZE_PARALLEL_SECTION macro. It provides the functionality to detected whether a parallel section has been started and with that serves as a utility for debugging the shared-memory parallelization. More...
#include <ParallelSection.h>
Public Member Functions | |
Constructors | |
ParallelSection (bool activate) | |
Constructor for the ParallelSection class. More... | |
ParallelSection (const ParallelSection &)=default | |
Destructor | |
~ParallelSection () | |
Destructor of the ParallelSection class. | |
Assignment operators | |
ParallelSection & | operator= (const ParallelSection &)=default |
Conversion operator | |
operator bool () const | |
Conversion operator to bool. More... | |
Static Private Attributes | |
Member variables | |
static bool | active_ |
Activity flag for the parallel section. More... | |
Section for the debugging of the shared-memory parallelization.
The ParallelSection class is an auxiliary helper class for the BLAZE_PARALLEL_SECTION macro. It provides the functionality to detected whether a parallel section has been started and with that serves as a utility for debugging the shared-memory parallelization.
|
inline |
Constructor for the ParallelSection class.
activate | Activation flag for the parallel section. |
std::runtime_error | Nested parallel sections detected. |
|
inline |
Conversion operator to bool.
The conversion operator returns true in case a parallel section is active and false otherwise.
|
staticprivate |
Activity flag for the parallel section.
In case a parallel section is active (i.e. the currently executed code is inside a parallel section), the flag is set to true, otherwise it is false.