Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::Concurrency::LegacyStdThreadBarrier Class Reference

Implementation of a barrier. More...

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.

Detailed Description

Implementation of a barrier.

This implementation was used before C++20 support when the std::barrier class did not exist.

Definition at line 108 of file StdThreadImplementation.cc.

Member Function Documentation

◆ destroy()

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

Destroys the barrier.

Implements Arcane::IThreadBarrier.

Definition at line 119 of file StdThreadImplementation.cc.

◆ init()

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

Initializes the barrier for nb_thread.

Implements Arcane::IThreadBarrier.

Definition at line 113 of file StdThreadImplementation.cc.

◆ wait()

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

Blocks and waits until all threads call this method.

Implements Arcane::IThreadBarrier.

Definition at line 126 of file StdThreadImplementation.cc.


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