llarp::thread::Queue

More...

Public Functions

Name
Queue(size_t capacity)
~Queue()
Queue(const Queue & ) =delete
Queue & operator=(const Queue & ) =delete
QueueReturn pushBack(const Type & value)
QueueReturn pushBack(Type && value)
QueueReturn tryPushBack(const Type & value)
QueueReturn tryPushBack(Type && value)
Type popFront()
std::optional< Type > popFrontWithTimeout(std::chrono::microseconds timeout)
std::optional< Type > tryPopFront()
void removeAll()
void disable()
void enable()
size_t capacity() const
size_t size() const
bool enabled() const
bool full() const
bool empty() const

Public Attributes

Name
constexpr size_t Alignment

Detailed Description

template <typename Type >
class llarp::thread::Queue;

Public Functions Documentation

function Queue

explicit Queue(
    size_t capacity
)

function ~Queue

~Queue()

function Queue

Queue(
    const Queue & 
) =delete

function operator=

Queue & operator=(
    const Queue & 
) =delete

function pushBack

QueueReturn pushBack(
    const Type & value
)

function pushBack

QueueReturn pushBack(
    Type && value
)

function tryPushBack

QueueReturn tryPushBack(
    const Type & value
)

function tryPushBack

QueueReturn tryPushBack(
    Type && value
)

function popFront

Type popFront()

function popFrontWithTimeout

std::optional< Type > popFrontWithTimeout(
    std::chrono::microseconds timeout
)

function tryPopFront

std::optional< Type > tryPopFront()

function removeAll

void removeAll()

function disable

void disable()

function enable

void enable()

function capacity

size_t capacity() const

function size

size_t size() const

function enabled

bool enabled() const

function full

bool full() const

function empty

bool empty() const

Public Attributes Documentation

variable Alignment

static constexpr size_t Alignment = 64;

Updated on 2026-01-10 at 22:49:45 +0000