35 #ifndef _BLAZE_MATH_SMP_THREADS_FUNCTIONS_H_
36 #define _BLAZE_MATH_SMP_THREADS_FUNCTIONS_H_
68 return TheThreadBackend::size();
90 throw std::invalid_argument(
"Invalid number of threads" );
92 TheThreadBackend::resize( number );
125 #if (defined _MSC_VER)
126 TheThreadBackend::resize( 0UL,
true );
#define BLAZE_BOOST_THREADS_PARALLEL_MODE
Compilation switch for the Boost parallelization.This compilation switch enables/disables the paralle...
Definition: SMP.h:122
void setNumThreads(size_t number)
Sets the number of threads to be used for thread parallel operations.
Definition: Functions.h:95
System settings for the shared-memory parallelization.
#define BLAZE_CPP_THREADS_PARALLEL_MODE
Compilation switch for the C++11 parallelization.This compilation switch enables/disables the paralle...
Definition: SMP.h:95
void shutDownThreads()
Provides a reliable shutdown of C++11 threads for Visual Studio compilers.
Definition: Functions.h:126
size_t getNumThreads()
Returns the number of threads used for thread parallel operations.
Definition: Functions.h:75
Header file for the C++11 and Boost thread backend.
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.In case of an invalid compile time expression, a compilation error is cr...
Definition: StaticAssert.h:143