aGrUM 3.3.2
a C++ library for (probabilistic) graphical models
gum::threadsSTL Namespace Reference

Classes

struct  ThreadExecutor

Functions

unsigned int getNumberOfThreads ()
 returns the max number of threads used by default when entering the next parallel region
void setNumberOfThreads (unsigned int number)
 Set the max number of threads to be used when entering the next parallel region.
GUM_SHARED_PUBLIC unsigned int getMaxNumberOfThreads ()
 Returns the maximum number of threads you should use at any time.
GUM_SHARED_PUBLIC unsigned int getNumberOfLogicalProcessors ()
 Get the number of logical processors.

Function Documentation

◆ getNumberOfThreads()

GUM_SHARED_PUBLIC unsigned int gum::threadsSTL::getNumberOfThreads ( )

returns the max number of threads used by default when entering the next parallel region

This is the number of threads launched in parallel regions. By default, this number is equal to getMaxNumberOfThreads() but if the user has changed it using method setNumberOfThreads, then this number is what the user required.

Returns
the number of threads used by default the next time we enter into a parallel region

Definition at line 78 of file threadsSTL.cpp.

78{ return _nb_threads_(); }

References getNumberOfThreads().

Referenced by getNumberOfThreads().

Here is the call graph for this function:
Here is the caller graph for this function: