UHD  003.005.000-0-g5cb9779d
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
uhd::reusable_barrier Class Reference

#include <atomic.hpp>

Public Member Functions

void resize (const size_t size)
 Resize the barrier for N threads. More...
 
UHD_INLINE void wait (void)
 Wait on the barrier condition. More...
 

Detailed Description

A reusable barrier to sync multiple threads. All threads spin on wait() until count is reset.

Member Function Documentation

◆ 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.


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