Workspace 6.21.5
Classes | Typedefs | Functions | Variables
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  identity
 
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
 
struct  ThreadExitListener
 
class  ThreadExitNotifier
 

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) 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)
 
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 std_max_align_t

◆ thread_id_t

typedef std::uintptr_t thread_id_t

Function Documentation

◆ align_for()

static char * align_for ( char *  ptr)
inlinestatic

◆ ceil_to_pow_2()

static T ceil_to_pow_2 ( x)
inlinestatic

◆ circular_less_than()

static bool circular_less_than ( a,
b 
)
inlinestatic

◆ deref_noexcept()

static auto deref_noexcept ( It &  it) -> decltype(*it)
inlinestaticnoexcept

◆ hash_thread_id()

static size_t hash_thread_id ( thread_id_t  id)
inlinestatic

◆ likely()

static bool() likely ( bool  x)
inlinestatic

◆ nomove()

static T const & nomove ( T const &  x)
inlinestatic

◆ swap_relaxed()

static void swap_relaxed ( std::atomic< T > &  left,
std::atomic< T > &  right 
)
inlinestatic

◆ thread_id()

thread_id_t thread_id ( )
inline

◆ unlikely()

static bool() unlikely ( bool  x)
inlinestatic

Variable Documentation

◆ invalid_thread_id

const thread_id_t invalid_thread_id = 0
static

◆ invalid_thread_id2

const thread_id_t invalid_thread_id2 = 1
static