JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Data Structures | Namespaces | Macros | Typedefs | Functions | Variables
concurrentqueue.h File Reference
#include <atomic>
#include <cassert>
#include <algorithm>
#include <array>
#include <climits>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <limits>
#include <thread>
#include <type_traits>
#include <utility>
Include dependency graph for concurrentqueue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  moodycamel::details::thread_id_converter< thread_id_t >
 
struct  moodycamel::details::const_numeric_max< T >
 
union  moodycamel::details::max_align_t
 
struct  moodycamel::ConcurrentQueueDefaultTraits
 
struct  moodycamel::details::ConcurrentQueueProducerTypelessBase
 
struct  moodycamel::details::_hash_32_or_64< use32 >
 
struct  moodycamel::details::_hash_32_or_64< 1 >
 
struct  moodycamel::details::hash_32_or_64< size >
 
struct  moodycamel::details::nomove_if< Enable >
 
struct  moodycamel::details::nomove_if< false >
 
struct  moodycamel::details::is_trivially_destructible< T >
 
struct  moodycamel::details::static_is_lock_free_num< T >
 
struct  moodycamel::details::static_is_lock_free_num< signed char >
 
struct  moodycamel::details::static_is_lock_free_num< short >
 
struct  moodycamel::details::static_is_lock_free_num< int >
 
struct  moodycamel::details::static_is_lock_free_num< long >
 
struct  moodycamel::details::static_is_lock_free_num< long long >
 
struct  moodycamel::details::static_is_lock_free< T >
 
struct  moodycamel::details::static_is_lock_free< bool >
 
struct  moodycamel::details::static_is_lock_free< U * >
 
struct  moodycamel::ProducerToken
 
struct  moodycamel::ConsumerToken
 
class  moodycamel::ConcurrentQueue< T, Traits >
 

Namespaces

 moodycamel
 
 moodycamel::details
 

Macros

#define MOODYCAMEL_THREADLOCAL   thread_local
 
#define MOODYCAMEL_EXCEPTIONS_ENABLED
 
#define MOODYCAMEL_TRY   try
 
#define MOODYCAMEL_CATCH(...)   catch (__VA_ARGS__)
 
#define MOODYCAMEL_RETHROW   throw
 
#define MOODYCAMEL_THROW(expr)   throw(expr)
 
#define MOODYCAMEL_NOEXCEPT   noexcept
 
#define MOODYCAMEL_NOEXCEPT_CTOR(type, valueType, expr)   noexcept(expr)
 
#define MOODYCAMEL_NOEXCEPT_ASSIGN(type, valueType, expr)   noexcept(expr)
 
#define MOODYCAMEL_DELETE_FUNCTION   = delete
 

Typedefs

typedef std::uintptr_t moodycamel::details::thread_id_t
 
typedef std::max_align_t moodycamel::details::std_max_align_t
 

Functions

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

Variables

static const thread_id_t moodycamel::details::invalid_thread_id = 0
 
static const thread_id_t moodycamel::details::invalid_thread_id2
 

Data Structure Documentation

◆ moodycamel::details::max_align_t

union moodycamel::details::max_align_t
Data Fields
std_max_align_t x
long long y
void * z

Macro Definition Documentation

◆ MOODYCAMEL_CATCH

#define MOODYCAMEL_CATCH (   ...)    catch (__VA_ARGS__)

◆ MOODYCAMEL_DELETE_FUNCTION

#define MOODYCAMEL_DELETE_FUNCTION   = delete

◆ MOODYCAMEL_EXCEPTIONS_ENABLED

#define MOODYCAMEL_EXCEPTIONS_ENABLED

◆ MOODYCAMEL_NOEXCEPT

#define MOODYCAMEL_NOEXCEPT   noexcept

◆ MOODYCAMEL_NOEXCEPT_ASSIGN

#define MOODYCAMEL_NOEXCEPT_ASSIGN (   type,
  valueType,
  expr 
)    noexcept(expr)

◆ MOODYCAMEL_NOEXCEPT_CTOR

#define MOODYCAMEL_NOEXCEPT_CTOR (   type,
  valueType,
  expr 
)    noexcept(expr)

◆ MOODYCAMEL_RETHROW

#define MOODYCAMEL_RETHROW   throw

◆ MOODYCAMEL_THREADLOCAL

#define MOODYCAMEL_THREADLOCAL   thread_local

◆ MOODYCAMEL_THROW

#define MOODYCAMEL_THROW (   expr)    throw(expr)

◆ MOODYCAMEL_TRY

#define MOODYCAMEL_TRY   try