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

OpenMP synchronization facilities. More...

#include <openMPSynchronization.hpp>

Inheritance diagram for codi::OpenMPSynchronization:

Static Public Member Functions

template<typename FunctionObject >
static void serialize (FunctionObject const &func)
 Ensures that only one among the calling threads calls the given function object.
 
static void synchronize ()
 Does not return until called by all threads.
 
- Static Public Member Functions inherited from codi::SynchronizationInterface
template<typename FunctionObject >
static void serialize (FunctionObject const &func)
 Ensures that only one among the calling threads calls the given function object.
 
static void synchronize ()
 Does not return until called by all threads.
 

Detailed Description

OpenMP synchronization facilities.

See SynchronizationInterface.

Member Function Documentation

◆ serialize()

template<typename FunctionObject >
static void codi::OpenMPSynchronization::serialize ( FunctionObject const & func)
inlinestatic

Ensures that only one among the calling threads calls the given function object.


Implementation: calls the given function object inside a master directive.

◆ synchronize()

static void codi::OpenMPSynchronization::synchronize ( )
inlinestatic

Does not return until called by all threads.


Implementation: contains a barrier directive.


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