7 #ifndef INCLUDED_UHD_UTILS_ATOMIC_HPP 8 #define INCLUDED_UHD_UTILS_ATOMIC_HPP 12 #include <boost/thread/thread.hpp> 31 if (cond == value)
return true;
33 while (cond != value) {
37 boost::this_thread::interruption_point();
38 boost::this_thread::yield();
67 std::atomic<bool> _locked;
UHD_INLINE void release(void)
Definition: atomic.hpp:54
Definition: time_spec.hpp:28
static time_spec_t get_system_time(void)
Definition: build_info.hpp:14
UHD_INLINE bool claim_with_wait(const double timeout)
Definition: atomic.hpp:58
simple_claimer(void)
Definition: atomic.hpp:50
#define UHD_INLINE
Definition: config.h:52
Definition: atomic.hpp:48
UHD_INLINE bool spin_wait_with_timeout(std::atomic< T > &cond, const T value, const double timeout)
Definition: atomic.hpp:26