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

A self-resetting barrier. More...

#include <BarrierThread.hpp>

Public Member Functions

 BarrierThread (TIdx const &threadCount)
 
auto wait () -> void
 Waits for all the other threads to reach the barrier. More...
 

Detailed Description

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

A self-resetting barrier.

Definition at line 26 of file BarrierThread.hpp.

Constructor & Destructor Documentation

◆ BarrierThread()

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

Definition at line 29 of file BarrierThread.hpp.

Member Function Documentation

◆ wait()

template<typename TIdx >
auto alpaka::core::threads::BarrierThread< TIdx >::wait ( ) -> void
inline

Waits for all the other threads to reach the barrier.

Definition at line 37 of file BarrierThread.hpp.


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