SUNphi  1.0
SUNphi::Barrier Struct Reference

Fake barrier. More...

#include <Barrier.hpp>

Public Member Functions

 Barrier (const int &nThreads)
 Dummy build the barrier for nThreads threads. More...
 
void sync (const char *barrName=nullptr, const int &threadId=0)
 Dummy synchronize checking the name of the barrier. More...
 

Detailed Description

Fake barrier.

Definition at line 94 of file Barrier.hpp.

Constructor & Destructor Documentation

SUNphi::Barrier::Barrier ( const int &  nThreads)
inline

Dummy build the barrier for nThreads threads.

Parameters
nThreadsNumber of threads for which the barrier is defined

Definition at line 97 of file Barrier.hpp.

Member Function Documentation

void SUNphi::Barrier::sync ( const char *  barrName = nullptr,
const int &  threadId = 0 
)
inline

Dummy synchronize checking the name of the barrier.

Parameters
barrNameName of the barrier
threadIdId of the thread used coming to check

Definition at line 102 of file Barrier.hpp.


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