mirror of
https://github.com/esphome/esphome.git
synced 2026-05-23 11:16:52 +08:00
[scheduler] Force-inline cleanup_() fast path (#15683)
This commit is contained in:
@@ -302,7 +302,7 @@ class Scheduler {
|
||||
// loop thread structurally modifies items_ (push/pop/erase). Other threads may
|
||||
// iterate items_ and mark items removed under lock_, but never change the
|
||||
// vector's size or data pointer.
|
||||
inline bool HOT cleanup_() {
|
||||
inline bool ESPHOME_ALWAYS_INLINE HOT cleanup_() {
|
||||
if (this->to_remove_empty_())
|
||||
return !this->items_.empty();
|
||||
return this->cleanup_slow_path_();
|
||||
|
||||
Reference in New Issue
Block a user