cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
sync_barrier.cpp File Reference

Implementation of SyncBarrier class. More...

#include "stat_bench/util/sync_barrier.h"
#include <condition_variable>
#include <memory>
#include <mutex>
#include "stat_bench/stat_bench_exception.h"
+ Include dependency graph for sync_barrier.cpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  stat_bench
 Namespace of stat_bench source codes.
 
namespace  stat_bench::util
 Namespace of utility functions and classes.
 

Functions

auto stat_bench::util::create_mutex_sync_barrier (std::size_t num_waiting_threads) -> std::shared_ptr< ISyncBarrier >
 Create a barrier to synchronize threads using a mutex.
 
auto stat_bench::util::create_sync_barrier (std::size_t num_waiting_threads) -> std::shared_ptr< ISyncBarrier >
 Create a barrier to synchronize threads.
 

Detailed Description

Implementation of SyncBarrier class.

Definition in file sync_barrier.cpp.