Ewoms::ThreadManager< TypeTag > Class Template Reference

Simplifies multi-threaded capabilities. More...

#include <threadmanager.hh>

Public Types

enum  { isFake = false }
 

Static Public Member Functions

static void registerParameters ()
 Register all run-time parameters of the thread manager. More...
 
static void init ()
 
static int maxThreads ()
 Return the maximum number of threads of the current process. More...
 
static int threadId ()
 Return the index of the current OpenMP thread. More...
 

Detailed Description

template<class TypeTag>
class Ewoms::ThreadManager< TypeTag >

Simplifies multi-threaded capabilities.

Member Enumeration Documentation

template<class TypeTag >
anonymous enum
Enumerator
isFake 

Specify whether OpenMP is really available or not.

Member Function Documentation

template<class TypeTag >
static void Ewoms::ThreadManager< TypeTag >::init ( )
inlinestatic

References EWOMS_GET_PARAM.

Referenced by start().

template<class TypeTag >
static int Ewoms::ThreadManager< TypeTag >::maxThreads ( )
inlinestatic

Return the maximum number of threads of the current process.

Referenced by Ewoms::FvBaseProblem< TypeTag >::finalize(), and Ewoms::FvBaseDiscretization< TypeTag >::finishInit().

template<class TypeTag >
static void Ewoms::ThreadManager< TypeTag >::registerParameters ( )
inlinestatic

Register all run-time parameters of the thread manager.

References EWOMS_REGISTER_PARAM.

template<class TypeTag >
static int Ewoms::ThreadManager< TypeTag >::threadId ( )
inlinestatic

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