OpenMP synchronization facilities. More...
#include <openMPSynchronization.hpp>
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. | |
OpenMP synchronization facilities.
|
inlinestatic |
Ensures that only one among the calling threads calls the given function object.
Implementation: calls the given function object inside a master directive.
|
inlinestatic |
Does not return until called by all threads.
Implementation: contains a barrier directive.