mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 08:38:39 +00:00
303c6513eeb503debe8cd171514e0c290ab6f607
LwIPLock was introduced for RP2040 WiFi in #14679 to prevent race conditions between lwip callbacks and the main loop. However, on platforms without lwIP core locking (ESP8266, LibreTiny, Zephyr, RP2040 without WiFi), the constructor/destructor were empty stubs in .cpp files that the compiler could not see through, generating unnecessary function calls at every call site. Move the no-op implementation inline into helpers.h so the compiler can eliminate all LwIPLock overhead on these platforms. ESP32 and RP2040+WiFi retain their out-of-line implementations with real locking.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
594 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
