lwip::work_queue class

Contents

A queue which schedules tasks to be executed on the network thread.

Base classes

class async

Public functions

auto size() const -> size_t
void reserve(size_t n)
template<typename Function>
void add(Function&& fun)

Function documentation

size_t lwip::work_queue::size() const

Returns the current number of tasks scheduled.

void lwip::work_queue::reserve(size_t n)

Reserves space for n new tasks.

template<typename Function>
void lwip::work_queue::add(Function&& fun)

Adds one task to the queue. This method may be called from any thread.