1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-27 07:32:22 +01:00

[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

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;