lwip::async class

Contents

This class serves as a base for work that is to be scheduled onto the networking thread (TCP/IP thread in lwip nomenclature). It relies on the tcpip_callback_with_block API.

Derived classes

template<typename Function>
class task
class work_queue

Public functions

void trigger()
auto trigger_from_isr() -> bool

Function documentation

void lwip::async::trigger()

Trigger the execution once. Can be called from any thread.

bool lwip::async::trigger_from_isr()

Trigger the execution once. Can be called from ISR. This call may fail if too many message have already been posted to the tcpip thread.

Returns false on failure.