35 #ifndef _BLAZE_MATH_SMP_SERIALSECTION_H_
36 #define _BLAZE_MATH_SMP_SERIALSECTION_H_
62 template<
typename T >
83 inline operator bool()
const;
117 template<
typename T >
137 template<
typename T >
141 throw std::runtime_error(
"Nested serial sections detected" );
159 template<
typename T >
181 template<
typename T >
260 #define BLAZE_SERIAL_SECTION \
261 if( blaze::SerialSection<int> serialSection = true )
Section to enforce the serial execution of operations.The SerialSection class is an auxiliary helper ...
Definition: SerialSection.h:63
SerialSection(bool activate)
Constructor for the SerialSection class.
Definition: SerialSection.h:138
bool isSerialSectionActive()
Returns whether a serial section is active or not.
Definition: SerialSection.h:211
~SerialSection()
Destructor of the SerialSection class.
Definition: SerialSection.h:160
static bool active_
Activity flag for the serial section.
Definition: SerialSection.h:91