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

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

#include <synchronizationInterface.hpp>

Inheritance diagram for codi::DefaultSynchronization:

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

Default implementation of SynchronizationInterface for serial applications.

Member Function Documentation

◆ serialize()

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

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


Implementation: does not synchronize, just calls the function object.

◆ synchronize()

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

Does not return until called by all threads.


Implementation: empty.


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