Helper class to simplify the synchronization between different threads.
More...
#include <async_barrier.h>
|
void | release () |
|
template<class Rep , class Period > |
bool | waitTillRelease (const std::chrono::duration< Rep, Period > &timeout) const |
|
|
std::promise< void > | barrier_ |
|
const std::future< void > | future_ { barrier_.get_future() } |
|
std::atomic_flag | is_released_ = ATOMIC_FLAG_INIT |
|
Helper class to simplify the synchronization between different threads.
Definition at line 30 of file async_barrier.h.
◆ release()
void psen_scan_v2_standalone::util::Barrier::release |
( |
| ) |
|
|
inline |
◆ waitTillRelease()
template<class Rep , class Period >
bool psen_scan_v2_standalone::util::Barrier::waitTillRelease |
( |
const std::chrono::duration< Rep, Period > & |
timeout | ) |
const |
|
inline |
◆ barrier_
std::promise<void> psen_scan_v2_standalone::util::Barrier::barrier_ |
|
private |
◆ future_
const std::future<void> psen_scan_v2_standalone::util::Barrier::future_ { barrier_.get_future() } |
|
private |
◆ is_released_
std::atomic_flag psen_scan_v2_standalone::util::Barrier::is_released_ = ATOMIC_FLAG_INIT |
|
private |
The documentation for this class was generated from the following file: