#include <uhd/utils/atomic.hpp>
A reusable barrier to sync multiple threads. All threads spin on wait() until count is reset.
◆ reusable_barrier() [1/2]
uhd::reusable_barrier::reusable_barrier |
( |
| ) |
|
|
inline |
◆ reusable_barrier() [2/2]
uhd::reusable_barrier::reusable_barrier |
( |
const size_t |
size | ) |
|
|
inline |
◆ interrupt()
void uhd::reusable_barrier::interrupt |
( |
void |
| ) |
|
|
inline |
Force the barrier wait to throw a boost::thread_interrupted The threads were not getting the interruption_point on windows.
◆ resize()
void uhd::reusable_barrier::resize |
( |
const size_t |
size | ) |
|
|
inline |
Resize the barrier for N threads.
◆ wait()
UHD_INLINE void uhd::reusable_barrier::wait |
( |
void |
| ) |
|
|
inline |
Wait on the barrier condition.
◆ wait_others()
UHD_INLINE void uhd::reusable_barrier::wait_others |
( |
void |
| ) |
|
|
inline |
Wait on the barrier condition.
The documentation for this class was generated from the following file: