UHD  003.006.002-rc2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions
uhd::reusable_barrier Class Reference

#include <atomic.hpp>

List of all members.

Public Member Functions

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

Detailed Description

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


Constructor & Destructor Documentation

uhd::reusable_barrier::reusable_barrier ( )
inline
uhd::reusable_barrier::reusable_barrier ( const size_t  size)
inline

Member Function Documentation

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.

void uhd::reusable_barrier::resize ( const size_t  size)
inline

Resize the barrier for N threads.

UHD_INLINE void uhd::reusable_barrier::wait ( void  )
inline

Wait on the barrier condition.

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: