cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
stat_bench::util::WindowsSyncBarrier Class Referencefinal

Class of barriers to synchronize threads using synchronization barriers in Windows. More...

#include </builds/MusicScience37Projects/utility-libraries/cpp-stat-bench/src/stat_bench/util/windows_sync_barrier.h>

+ Inheritance diagram for stat_bench::util::WindowsSyncBarrier:
+ Collaboration diagram for stat_bench::util::WindowsSyncBarrier:

Public Member Functions

 WindowsSyncBarrier (const WindowsSyncBarrier &)=delete
 
 WindowsSyncBarrier (std::size_t num_waiting_threads)
 Constructor.
 
 WindowsSyncBarrier (WindowsSyncBarrier &&)=delete
 
 ~WindowsSyncBarrier () override
 Destructor.
 
auto operator= (const WindowsSyncBarrier &)=delete
 
auto operator= (WindowsSyncBarrier &&)=delete
 
void wait () override
 Wait for other threads.
 
- Public Member Functions inherited from stat_bench::util::ISyncBarrier
 ISyncBarrier (const ISyncBarrier &)=delete
 
 ISyncBarrier (ISyncBarrier &&)=delete
 
virtual ~ISyncBarrier ()=default
 Destructor.
 
auto operator= (const ISyncBarrier &)=delete
 
auto operator= (ISyncBarrier &&)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from stat_bench::util::ISyncBarrier
 ISyncBarrier ()=default
 Constructor.
 

Detailed Description

Class of barriers to synchronize threads using synchronization barriers in Windows.

Definition at line 36 of file windows_sync_barrier.h.

Constructor & Destructor Documentation

◆ WindowsSyncBarrier()

stat_bench::util::WindowsSyncBarrier::WindowsSyncBarrier ( std::size_t num_waiting_threads)
inlineexplicit

Constructor.

Parameters
[in]num_waiting_threadsNumber of threads to wait.

Definition at line 43 of file windows_sync_barrier.h.

◆ ~WindowsSyncBarrier()

stat_bench::util::WindowsSyncBarrier::~WindowsSyncBarrier ( )
inlineoverride

Destructor.

Definition at line 68 of file windows_sync_barrier.h.

Member Function Documentation

◆ wait()

void stat_bench::util::WindowsSyncBarrier::wait ( )
inlineoverridevirtual

Wait for other threads.

Implements stat_bench::util::ISyncBarrier.

Definition at line 60 of file windows_sync_barrier.h.


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