dune-fem
2.4.1-rc
|
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... | |
The ThreadManager wrapps basic shared memory functionality provided by OpenMP or pthreads such as thread id, number of threads, etc.
|
inlinestatic |
return number of current threads
|
inlinestatic |
return true if the current thread is the master thread (i.e. thread 0)
|
inlinestatic |
return maximal number of threads possbile in the current run
Referenced by Dune::Fem::VTKIOBase< GridPart, false >::addPartitionData(), Dune::Fem::ThreadIterator< GridPart, ptype >::countElements(), Dune::Fem::DomainDecomposedIterator< GridPart >::DomainDecomposedIterator(), Dune::Fem::ThreadSafeValue< RangeVectorType >::size(), Dune::Fem::ThreadIterator< GridPart, ptype >::ThreadIterator(), Dune::Fem::ThreadIterator< GridPart, ptype >::update(), and Dune::Fem::DomainDecomposedIterator< GridPart >::update().
|
inlinestatic |
set maximal number of threads available during run
|
inlinestatic |
returns true if program is operating on one thread currently
Referenced by Dune::Fem::AdaptationManagerBase< GridType, RestProlOperatorImp >::adapt(), Dune::Fem::DofManager< Grid >::addIndexSet(), Dune::Fem::DiscreteFunctionDefault< CombinedDiscreteFunction< ContainedDiscreteFunctionImp, N > >::communicate(), Dune::Fem::SingletonList< Key, Object, Factory >::getObject(), Dune::Fem::PointProvider< ct, dim, 1 >::getPoints(), Dune::Fem::LoadBalancer< GridType >::loadBalance(), Dune::Fem::PointProvider< ct, dim, 0 >::registerQuadrature(), Dune::Fem::QuadratureStorageRegistry::registerQuadrature(), Dune::Fem::QuadratureStorageRegistry::registerStorage(), Dune::Fem::DofManager< Grid >::removeIndexSet(), Dune::Fem::SingletonList< Key, Object, Factory >::removeObject(), Dune::Fem::QuadratureStorageRegistry::unregisterStorage(), Dune::Fem::ThreadIterator< GridPart, ptype >::update(), Dune::Fem::DomainDecomposedIterator< GridPart >::update(), and Dune::Fem::ObjectStack< LocalMatrixFactoryType >::~ObjectStack().
|
inlinestatic |
return thread number
Referenced by Dune::Fem::ThreadIterator< GridPart, ptype >::begin(), Dune::Fem::DomainDecomposedIterator< GridPart >::begin(), Dune::Fem::ThreadIterator< GridPart, ptype >::end(), Dune::Fem::DomainDecomposedIterator< GridPart >::end(), Dune::Fem::ThreadSafeValue< RangeVectorType >::operator const ValueType &(), Dune::Fem::ThreadSafeValue< RangeVectorType >::operator ValueType &(), and Dune::Fem::ThreadSafeValue< RangeVectorType >::operator*().