[core] Match LockFreeQueue initialization order (#9813)

This commit is contained in:
Jesse Hills 2025-07-23 11:46:14 +12:00 committed by GitHub
parent a994ad3642
commit 7bfb08e602
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ namespace esphome {
// Base lock-free queue without task notification
template<class T, uint8_t SIZE> class LockFreeQueue {
public:
LockFreeQueue() : head_(0), tail_(0), dropped_count_(0) {}
LockFreeQueue() : dropped_count_(0), head_(0), tail_(0) {}
bool push(T *element) {
bool was_empty;