1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-05 03:13:49 +01:00
This commit is contained in:
J. Nick Koston
2025-06-16 14:47:05 +02:00
parent bc49211dab
commit 8a672e34c5

View File

@@ -10,8 +10,8 @@
namespace esphome { namespace esphome {
namespace esp32_ble { namespace esp32_ble {
// BLE Event Pool - Pre-allocated pool of BLEEvent objects to avoid heap fragmentation // BLE Event Pool - On-demand pool of BLEEvent objects to avoid heap fragmentation
// This is a lock-free pool that allows the BLE task to allocate events without malloc // Events are allocated on first use and reused thereafter, growing to peak usage
template<size_t SIZE> class BLEEventPool { template<size_t SIZE> class BLEEventPool {
public: public:
BLEEventPool() { BLEEventPool() {