Skip to content

moodycamel::BlockingReaderWriterQueue

More...

#include <readerwriterqueue.h>

Public Functions

Name
BlockingReaderWriterQueue(size_t maxSize =15)
BlockingReaderWriterQueue(BlockingReaderWriterQueue && other)
BlockingReaderWriterQueue & operator=(BlockingReaderWriterQueue && other)
AE_FORCEINLINE bool try_enqueue(T const & element)
AE_FORCEINLINE bool try_enqueue(T && element)
AE_FORCEINLINE bool enqueue(T const & element)
AE_FORCEINLINE bool enqueue(T && element)
template <typename U >
bool
try_dequeue(U & result)
template <typename U >
void
wait_dequeue(U & result)
template <typename U >
bool
wait_dequeue_timed(U & result, std::int64_t timeout_usecs)
AE_FORCEINLINE T * peek()
AE_FORCEINLINE bool pop()
AE_FORCEINLINE size_t size_approx() const

Detailed Description

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

Public Functions Documentation

function BlockingReaderWriterQueue

1
2
3
inline explicit BlockingReaderWriterQueue(
    size_t maxSize =15
)

function BlockingReaderWriterQueue

1
2
3
inline BlockingReaderWriterQueue(
    BlockingReaderWriterQueue && other
)

function operator=

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

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 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 try_dequeue

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

function wait_dequeue

1
2
3
4
template <typename U >
inline void wait_dequeue(
    U & result
)

function wait_dequeue_timed

1
2
3
4
5
template <typename U >
inline bool wait_dequeue_timed(
    U & result,
    std::int64_t timeout_usecs
)

function peek

1
inline AE_FORCEINLINE T * peek()

function pop

1
inline AE_FORCEINLINE bool pop()

function size_approx

1
inline AE_FORCEINLINE size_t size_approx() const

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