|
ESPHome 2026.3.0
|
Helper class to lock the lwIP TCPIP core when making lwIP API calls from non-TCPIP threads. More...
#include <helpers.h>
Public Member Functions | |
| LwIPLock (const LwIPLock &)=delete | |
| LwIPLock & | operator= (const LwIPLock &)=delete |
| LwIPLock () | |
| ~LwIPLock () | |
| LwIPLock () | |
| ~LwIPLock () | |
Helper class to lock the lwIP TCPIP core when making lwIP API calls from non-TCPIP threads.
This is needed on multi-threaded platforms (ESP32) when CONFIG_LWIP_TCPIP_CORE_LOCKING is enabled, and on RP2040 when CYW43 WiFi is active (cyw43_arch_lwip_begin/end).
On platforms without lwIP core locking (ESP8266, LibreTiny, Zephyr), this is a no-op defined inline so the compiler can eliminate all call overhead.
|
delete |
| esphome::LwIPLock::LwIPLock | ( | ) |
Definition at line 38 of file helpers.cpp.
| esphome::LwIPLock::~LwIPLock | ( | ) |
Definition at line 55 of file helpers.cpp.