mirror of
https://github.com/esphome/esphome.git
synced 2025-08-10 20:29:24 +00:00
ble pool
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
namespace esphome {
|
||||
namespace esp32_ble {
|
||||
|
||||
// BLE Event Pool - Pre-allocated pool of BLEEvent objects to avoid heap fragmentation
|
||||
// This is a lock-free pool that allows the BLE task to allocate events without malloc
|
||||
// BLE Event Pool - On-demand pool of BLEEvent objects to avoid heap fragmentation
|
||||
// Events are allocated on first use and reused thereafter, growing to peak usage
|
||||
template<size_t SIZE> class BLEEventPool {
|
||||
public:
|
||||
BLEEventPool() {
|
||||
|
Reference in New Issue
Block a user