alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::core::threads::BarrierThreadWithPredicate< TIdx > Class Template Referencefinal

A self-resetting barrier with barrier. More...

#include <BarrierThread.hpp>

Public Member Functions

 BarrierThreadWithPredicate (TIdx const &threadCount)
 
template<typename TOp >
ALPAKA_FN_HOST auto wait (int predicate) -> int
 Waits for all the other threads to reach the barrier. More...
 

Detailed Description

template<typename TIdx>
class alpaka::core::threads::BarrierThreadWithPredicate< TIdx >

A self-resetting barrier with barrier.

Definition at line 116 of file BarrierThread.hpp.

Constructor & Destructor Documentation

◆ BarrierThreadWithPredicate()

template<typename TIdx >
alpaka::core::threads::BarrierThreadWithPredicate< TIdx >::BarrierThreadWithPredicate ( TIdx const &  threadCount)
inlineexplicit

Definition at line 119 of file BarrierThread.hpp.

Member Function Documentation

◆ wait()

template<typename TIdx >
template<typename TOp >
ALPAKA_FN_HOST auto alpaka::core::threads::BarrierThreadWithPredicate< TIdx >::wait ( int  predicate) -> int
inline

Waits for all the other threads to reach the barrier.

Definition at line 128 of file BarrierThread.hpp.


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