CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::DefaultThreadInformation Struct Reference

Default implementation of ThreadInformationInterface for serial applications. More...

#include <threadInformationInterface.hpp>

Inheritance diagram for codi::DefaultThreadInformation:

Static Public Member Functions

static int getMaxThreads ()
 Provides an upper bound on the number of threads.
 
static int getThreadId ()
 Returns the id of the calling thread.
 
- Static Public Member Functions inherited from codi::ThreadInformationInterface
static int getMaxThreads ()
 Provides an upper bound on the number of threads.
 
static int getThreadId ()
 Returns the id of the calling thread.
 

Detailed Description

Default implementation of ThreadInformationInterface for serial applications.

Member Function Documentation

◆ getMaxThreads()

static int codi::DefaultThreadInformation::getMaxThreads ( )
inlinestatic

Provides an upper bound on the number of threads.

◆ getThreadId()

static int codi::DefaultThreadInformation::getThreadId ( )
inlinestatic

Returns the id of the calling thread.

Thread ids are integers 0, 1, ..., maximum number of threads - 1.


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