Skip to content

moodycamel::ReaderWriterQueue

More...

#include <readerwriterqueue.h>

Public Types

Name
typedef T value_type

Public Functions

Name
AE_NO_TSAN ReaderWriterQueue(size_t maxSize =15)
AE_NO_TSAN ReaderWriterQueue(ReaderWriterQueue && other)
ReaderWriterQueue & operator=(ReaderWriterQueue && other)
AE_NO_TSAN ~ReaderWriterQueue()
AE_FORCEINLINE bool try_enqueue(T const & element)
AE_FORCEINLINE bool try_enqueue(T && element)
template <typename... Args>
AE_FORCEINLINE bool
try_emplace(Args &&... args)
AE_FORCEINLINE bool enqueue(T const & element)
AE_FORCEINLINE bool enqueue(T && element)
template <typename... Args>
AE_FORCEINLINE bool
emplace(Args &&... args)
template <typename U >
bool
try_dequeue(U & result)
T * peek()
bool pop()
size_t size_approx() const

Detailed Description

1
2
3
template <typename T ,
size_t MAX_BLOCK_SIZE =512>
class moodycamel::ReaderWriterQueue;

Public Types Documentation

typedef value_type

1
typedef T moodycamel::ReaderWriterQueue< T, MAX_BLOCK_SIZE >::value_type;

Public Functions Documentation

function ReaderWriterQueue

1
2
3
inline explicit AE_NO_TSAN ReaderWriterQueue(
    size_t maxSize =15
)

function ReaderWriterQueue

1
2
3
inline AE_NO_TSAN ReaderWriterQueue(
    ReaderWriterQueue && other
)

function operator=

1
2
3
inline ReaderWriterQueue & operator=(
    ReaderWriterQueue && other
)

function ~ReaderWriterQueue

1
inline AE_NO_TSAN ~ReaderWriterQueue()

function try_enqueue

1
2
3
inline AE_FORCEINLINE bool try_enqueue(
    T const & element
)

function try_enqueue

1
2
3
inline AE_FORCEINLINE bool try_enqueue(
    T && element
)

function try_emplace

1
2
3
4
template <typename... Args>
inline AE_FORCEINLINE bool try_emplace(
    Args &&... args
)

function enqueue

1
2
3
inline AE_FORCEINLINE bool enqueue(
    T const & element
)

function enqueue

1
2
3
inline AE_FORCEINLINE bool enqueue(
    T && element
)

function emplace

1
2
3
4
template <typename... Args>
inline AE_FORCEINLINE bool emplace(
    Args &&... args
)

function try_dequeue

1
2
3
4
template <typename U >
inline bool try_dequeue(
    U & result
)

function peek

1
inline T * peek()

function pop

1
inline bool pop()

function size_approx

1
inline size_t size_approx() const

Updated on 2023-07-03 at 11:02:00 +0000