CARLA
Loading...
Searching...
No Matches
moodycamel::details Namespace Reference

Classes

struct  _hash_32_or_64
struct  _hash_32_or_64< 1 >
struct  ConcurrentQueueProducerTypelessBase
struct  const_numeric_max
struct  hash_32_or_64
struct  is_trivially_destructible
union  max_align_t
struct  nomove_if
struct  nomove_if< false >
struct  static_is_lock_free
struct  static_is_lock_free< bool >
struct  static_is_lock_free< U * >
struct  static_is_lock_free_num
struct  static_is_lock_free_num< int >
struct  static_is_lock_free_num< long >
struct  static_is_lock_free_num< long long >
struct  static_is_lock_free_num< short >
struct  static_is_lock_free_num< signed char >
struct  thread_id_converter

Typedefs

typedef std::max_align_t std_max_align_t
typedef std::uintptr_t thread_id_t

Functions

template<typename U>
static char * align_for (char *ptr)
template<typename T>
static T ceil_to_pow_2 (T x)
template<typename T>
static bool circular_less_than (T a, T b)
template<typename It>
static auto deref_noexcept (It &it) MOODYCAMEL_NOEXCEPT -> decltype(*it)
static size_t hash_thread_id (thread_id_t id)
static bool likely (bool x)
template<typename T>
static T const & nomove (T const &x)
template<typename T>
static void swap_relaxed (std::atomic< T > &left, std::atomic< T > &right)
static thread_id_t thread_id ()
static bool unlikely (bool x)

Variables

static const thread_id_t invalid_thread_id = 0
static const thread_id_t invalid_thread_id2 = 1

Typedef Documentation

◆ std_max_align_t

typedef std::max_align_t moodycamel::details::std_max_align_t

Definition at line 257 of file ConcurrentQueue.h.

◆ thread_id_t

typedef std::uintptr_t moodycamel::details::thread_id_t

Definition at line 147 of file ConcurrentQueue.h.

Function Documentation

◆ align_for()

◆ ceil_to_pow_2()

template<typename T>
T moodycamel::details::ceil_to_pow_2 ( T x)
inlinestatic

◆ circular_less_than()

◆ deref_noexcept()

◆ hash_thread_id()

size_t moodycamel::details::hash_thread_id ( thread_id_t id)
inlinestatic

◆ likely()

◆ nomove()

template<typename T>
T const & moodycamel::details::nomove ( T const & x)
inlinestatic

Definition at line 464 of file ConcurrentQueue.h.

References nomove().

Referenced by nomove().

◆ swap_relaxed()

◆ thread_id()

thread_id_t moodycamel::details::thread_id ( )
inlinestatic

◆ unlikely()

bool moodycamel::details::unlikely ( bool x)
inlinestatic

Variable Documentation

◆ invalid_thread_id

◆ invalid_thread_id2

const thread_id_t moodycamel::details::invalid_thread_id2 = 1
static