mirror of
https://github.com/esphome/esphome.git
synced 2026-10-08 03:54:03 +00:00
[core] Let the empty Scheduler mutex take no space on single-threaded platforms (#20139)
This commit is contained in:
@@ -518,7 +518,8 @@ class Scheduler {
|
||||
uint32_t hash_or_id,
|
||||
SchedulerItem::Type type, bool find_first);
|
||||
|
||||
Mutex lock_;
|
||||
// Empty on single-threaded platforms (ESP8266, RP2), so it takes no space there
|
||||
[[no_unique_address]] Mutex lock_;
|
||||
std::vector<SchedulerItem *> items_;
|
||||
std::vector<SchedulerItem *> to_add_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user