class
work_queueContents
- Reference
A queue which schedules tasks to be executed on the network thread.
Base classes
- class async
Public functions
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.