Public Member Functions | Private Attributes | List of all members
psen_scan_v2_standalone::util::Barrier Class Reference

Helper class to simplify the synchronization between different threads. More...

#include <async_barrier.h>

Public Member Functions

void release ()
 
template<class Rep , class Period >
bool waitTillRelease (const std::chrono::duration< Rep, Period > &timeout) const
 

Private Attributes

std::promise< void > barrier_
 
const std::future< void > future_ { barrier_.get_future() }
 
std::atomic_flag is_released_ = ATOMIC_FLAG_INIT
 

Detailed Description

Helper class to simplify the synchronization between different threads.

Definition at line 30 of file async_barrier.h.

Member Function Documentation

◆ release()

void psen_scan_v2_standalone::util::Barrier::release ( )
inline

Definition at line 43 of file async_barrier.h.

◆ waitTillRelease()

template<class Rep , class Period >
bool psen_scan_v2_standalone::util::Barrier::waitTillRelease ( const std::chrono::duration< Rep, Period > &  timeout) const
inline

Definition at line 52 of file async_barrier.h.

Member Data Documentation

◆ barrier_

std::promise<void> psen_scan_v2_standalone::util::Barrier::barrier_
private

Definition at line 38 of file async_barrier.h.

◆ future_

const std::future<void> psen_scan_v2_standalone::util::Barrier::future_ { barrier_.get_future() }
private

Definition at line 40 of file async_barrier.h.

◆ is_released_

std::atomic_flag psen_scan_v2_standalone::util::Barrier::is_released_ = ATOMIC_FLAG_INIT
private

Definition at line 39 of file async_barrier.h.


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


psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Jun 22 2024 02:46:12