mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 09:08:41 +00:00
a078d1b14d7d06e3af8a9ae6f5a671cdaa8ce44d
LockFreeQueue<T,N> is a ring buffer that holds N-1 elements (one slot is reserved to distinguish full from empty). With the pool also sized to N, the Nth allocate() succeeds but push() fails — permanently leaking one pool slot since the element is never returned. Size the pool to N-1 to match queue capacity. This guarantees allocate() returns nullptr before push() can fail.
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%
