[esp32_ble] Fix EventPool/LockFreeQueue sizing off-by-one (#14892)

This commit is contained in:
J. Nick Koston authored and Jesse Hills committed 2026-03-18 13:35:20 +13:00
1 parent 6154b673c2
commit ccf672d7ee
2 files changed
+9 -2

No files matched your search

+2 -1
View File
@@ -575,8 +575,9 @@ template<typename... Args> void enqueue_ble_event(Args... args) {
load_ble_event(event, args...);
// Push the event to the queue
// Push always succeeds: pool is sized to queue capacity (N-1), so if
// allocate() returned non-null, the queue is guaranteed to have room.
global_ble->ble_events_.push(event);
// Push always succeeds because we're the only producer and the pool ensures we never exceed queue size
}
// Explicit template instantiations for the friend function