![]() |
Blaze 3.9
|
Section to enforce the serial execution of operations. More...
#include <SerialSection.h>
Public Member Functions | |
Constructor | |
SerialSection (bool activate) | |
Constructor for the SerialSection class. More... | |
Destructor | |
~SerialSection () | |
Destructor of the SerialSection class. | |
Conversion operator | |
operator bool () const | |
Conversion operator to bool. More... | |
Static Private Attributes | |
Member variables | |
static bool | active_ |
Activity flag for the serial section. More... | |
Section to enforce the serial execution of operations.
The SerialSection class is an auxiliary helper class for the BLAZE_SERIAL_SECTION macro. It provides the functionality to detect whether a serial section is active, i.e. if the currently executed code is inside a serial section.
|
inline |
Constructor for the SerialSection class.
activate | Activation flag for the serial section. |
std::runtime_error | Nested serial sections detected. |
|
inline |
Conversion operator to bool.
The conversion operator returns true in case a serial section is active and false otherwise.
|
staticprivate |
Activity flag for the serial section.
In case a serial section is active (i.e. the currently executed code is inside a serial section), the flag is set to true, otherwise it is false.