#include <dune/fem/misc/threads/threadmanager.hh>
◆ 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 |
◆ 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: