Implementation of a barrier using std::barrier. More...
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 |
Implementation of a barrier using std::barrier.
Definition at line 158 of file StdThreadImplementation.cc.
|
inlineoverride |
Definition at line 170 of file StdThreadImplementation.cc.
|
inlineoverridevirtual |
Destroys the barrier.
Implements Arcane::IThreadBarrier.
Definition at line 179 of file StdThreadImplementation.cc.
|
inlineoverridevirtual |
Initializes the barrier for nb_thread.
Implements Arcane::IThreadBarrier.
Definition at line 174 of file StdThreadImplementation.cc.
|
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.
|
private |
Definition at line 192 of file StdThreadImplementation.cc.