Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::GlibThreadBarrier Class Reference
Inheritance diagram for Arcane::GlibThreadBarrier:
Collaboration diagram for Arcane::GlibThreadBarrier:

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

GlibMutexm_wait_mutex = nullptr
GlibCondm_wait = nullptr
Int32 m_nb_thread = 0
Int32 m_current_reached = 0

Detailed Description

Member Function Documentation

◆ destroy()

void Arcane::GlibThreadBarrier::destroy ( )
inlineoverridevirtual

Destroys the barrier.

Implements Arcane::IThreadBarrier.

Definition at line 61 of file arccore/src/concurrency/arccore/concurrency/GlibThreadImplementation.cc.

◆ init()

void Arcane::GlibThreadBarrier::init ( Integer nb_thread)
inlineoverridevirtual

Initializes the barrier for nb_thread.

Implements Arcane::IThreadBarrier.

Definition at line 53 of file arccore/src/concurrency/arccore/concurrency/GlibThreadImplementation.cc.

◆ wait()

void Arcane::GlibThreadBarrier::wait ( )
inlineoverridevirtual

Blocks and waits until all threads call this method.

Implements Arcane::IThreadBarrier.

Definition at line 70 of file arccore/src/concurrency/arccore/concurrency/GlibThreadImplementation.cc.

Member Data Documentation

◆ m_current_reached

Int32 Arcane::GlibThreadBarrier::m_current_reached = 0
private

◆ m_nb_thread

Int32 Arcane::GlibThreadBarrier::m_nb_thread = 0
private

◆ m_wait

GlibCond* Arcane::GlibThreadBarrier::m_wait = nullptr
private

◆ m_wait_mutex

GlibMutex* Arcane::GlibThreadBarrier::m_wait_mutex = nullptr
private

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