CoDiPack  3.0.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 inlineint getMaxThreads ()
 Provides an upper bound on the number of threads.
 
static inlineint getThreadId ()
 Returns the id of the calling thread.
 
- Static Public Member Functions inherited from codi::ThreadInformationInterface
static inlineint getMaxThreads ()
 Provides an upper bound on the number of threads.
 
static inlineint getThreadId ()
 Returns the id of the calling thread.
 

Detailed Description

Default implementation of ThreadInformationInterface for serial applications.

Member Function Documentation

◆ getMaxThreads()

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

Provides an upper bound on the number of threads.

◆ getThreadId()

static inlineint 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: