dune-fem 2.8-git
Static Public Member Functions | Static Public Attributes | List of all members
Dune::Fem::EmptyThreadManager Struct Reference

#include <dune/fem/misc/threads/threadmanager.hh>

Static Public Member Functions

static void initSingleThreadMode ()
 initialize single thread mode (when in multithread mode) More...
 
static void initMultiThreadMode (const int nThreads)
 initialize multi thread mode (when in single thread mode) More...
 
static void initThread (const int maxThreads, const int threadNum)
 set max number of threads and thread number for this thread More...
 
static int maxThreads ()
 return maximal number of threads possbile in the current run More...
 
static int currentThreads ()
 return number of current threads More...
 
static int thread ()
 return thread number More...
 
static bool isMaster ()
 return true if the current thread is the master thread (i.e. thread 0) More...
 
static void setMaxNumberThreads (const int numThreads)
 set maximal number of threads available during run More...
 
static bool singleThreadMode ()
 returns true if program is operating on one thread currently More...
 

Static Public Attributes

static constexpr bool pthreads = false
 true if pthreads are used More...
 

Member Function Documentation

◆ currentThreads()

static int Dune::Fem::EmptyThreadManager::currentThreads ( )
inlinestatic

return number of current threads

◆ initMultiThreadMode()

static void Dune::Fem::EmptyThreadManager::initMultiThreadMode ( const int  nThreads)
inlinestatic

initialize multi thread mode (when in single thread mode)

◆ initSingleThreadMode()

static void Dune::Fem::EmptyThreadManager::initSingleThreadMode ( )
inlinestatic

initialize single thread mode (when in multithread mode)

◆ initThread()

static void Dune::Fem::EmptyThreadManager::initThread ( const int  maxThreads,
const int  threadNum 
)
inlinestatic

set max number of threads and thread number for this thread

◆ isMaster()

static bool Dune::Fem::EmptyThreadManager::isMaster ( )
inlinestatic

return true if the current thread is the master thread (i.e. thread 0)

◆ maxThreads()

static int Dune::Fem::EmptyThreadManager::maxThreads ( )
inlinestatic

return maximal number of threads possbile in the current run

◆ setMaxNumberThreads()

static void Dune::Fem::EmptyThreadManager::setMaxNumberThreads ( const int  numThreads)
inlinestatic

set maximal number of threads available during run

◆ singleThreadMode()

static bool Dune::Fem::EmptyThreadManager::singleThreadMode ( )
inlinestatic

returns true if program is operating on one thread currently

◆ thread()

static int Dune::Fem::EmptyThreadManager::thread ( )
inlinestatic

return thread number

Member Data Documentation

◆ pthreads

constexpr bool Dune::Fem::EmptyThreadManager::pthreads = false
staticconstexpr

true if pthreads are used


The documentation for this struct was generated from the following file: