mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 06:36:45 +00:00
[core] Match LockFreeQueue initialization order (#9813)
This commit is contained in:
parent
a994ad3642
commit
7bfb08e602
@ -29,7 +29,7 @@ namespace esphome {
|
|||||||
// Base lock-free queue without task notification
|
// Base lock-free queue without task notification
|
||||||
template<class T, uint8_t SIZE> class LockFreeQueue {
|
template<class T, uint8_t SIZE> class LockFreeQueue {
|
||||||
public:
|
public:
|
||||||
LockFreeQueue() : head_(0), tail_(0), dropped_count_(0) {}
|
LockFreeQueue() : dropped_count_(0), head_(0), tail_(0) {}
|
||||||
|
|
||||||
bool push(T *element) {
|
bool push(T *element) {
|
||||||
bool was_empty;
|
bool was_empty;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user