Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Concurrency::StdThreadBarrier Class Reference

Implementation of a barrier using std::barrier. More...

Inheritance diagram for Arcane::Concurrency::StdThreadBarrier:
Collaboration diagram for Arcane::Concurrency::StdThreadBarrier:

Classes

class  NullFunc

Public Member Functions

void init (Integer nb_thread) override
 Initializes the barrier for nb_thread.
void destroy () override
 Destroys the barrier.
void wait () override
 Blocks and waits until all threads call this method.

Private Attributes

std::barrier< NullFunc > * m_barrier = nullptr

Detailed Description

Implementation of a barrier using std::barrier.

Definition at line 158 of file StdThreadImplementation.cc.

Constructor & Destructor Documentation

◆ ~StdThreadBarrier()

Arcane::Concurrency::StdThreadBarrier::~StdThreadBarrier ( )
inlineoverride

Definition at line 170 of file StdThreadImplementation.cc.

Member Function Documentation

◆ destroy()

void Arcane::Concurrency::StdThreadBarrier::destroy ( )
inlineoverridevirtual

Destroys the barrier.

Implements Arcane::IThreadBarrier.

Definition at line 179 of file StdThreadImplementation.cc.

◆ init()

void Arcane::Concurrency::StdThreadBarrier::init ( Integer nb_thread)
inlineoverridevirtual

Initializes the barrier for nb_thread.

Implements Arcane::IThreadBarrier.

Definition at line 174 of file StdThreadImplementation.cc.

◆ wait()

void Arcane::Concurrency::StdThreadBarrier::wait ( )
inlineoverridevirtual

Blocks and waits until all threads call this method.

Implements Arcane::IThreadBarrier.

Definition at line 184 of file StdThreadImplementation.cc.

References ARCCORE_CHECK_POINTER.

Member Data Documentation

◆ m_barrier

std::barrier<NullFunc>* Arcane::Concurrency::StdThreadBarrier::m_barrier = nullptr
private

Definition at line 192 of file StdThreadImplementation.cc.


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