dune-fem  2.4.1-rc
Static Public Member Functions | List of all members
Dune::Fem::ThreadManager Class Reference

The ThreadManager wrapps basic shared memory functionality provided by OpenMP or pthreads such as thread id, number of threads, etc. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/misc/threads/threadmanager.hh>

Static Public Member Functions

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...
 

Detailed Description

The ThreadManager wrapps basic shared memory functionality provided by OpenMP or pthreads such as thread id, number of threads, etc.

Note
All methods are static members.

Member Function Documentation

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

return number of current threads

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

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

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

set maximal number of threads available during run

static bool Dune::Fem::ThreadManager::singleThreadMode ( )
inlinestatic
static int Dune::Fem::ThreadManager::thread ( )
inlinestatic

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