[core] Let the empty Scheduler mutex take no space on single-threaded platforms (#20139)

This commit is contained in:
J. Nick Koston
2026-10-05 12:02:27 +13:00
committed by GitHub
parent a1a4474a01
commit 9b83f37b78
+2 -1
View File
@@ -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_;