70 if (number == 0) number = 1;
72 omp_set_num_threads(number);
77 "openMP was not enabled at compilation (or "
78 "you asked for 0 threads !)");
Exception : operation not allowed.
#define GUM_ERROR(type, msg)
unsigned int getMaxNumberOfThreads()
Returns the maximum number of threads that should be used at any time.
void setNumberOfThreads(unsigned int number)
Set the number of threads to be used when entering the next parallel region.
unsigned int getNumberOfThreads()
returns the max number of threads used by default when entering the next parallel region
static unsigned int _nb_threads_
gum is the global namespace for all aGrUM entities
OpenMP wrappers implementation.