Add WarnIfComponentBlockingGuard as friend for runtime_stats_ access

This commit is contained in:
J. Nick Koston
2026-03-31 23:12:42 -10:00
parent 0b59acb922
commit 695b41763a
+1
View File
@@ -568,6 +568,7 @@ class Component {
volatile bool pending_enable_loop_{false}; ///< ISR-safe flag for enable_loop_soon_any_context
#ifdef USE_RUNTIME_STATS
friend class runtime_stats::RuntimeStatsCollector;
friend class WarnIfComponentBlockingGuard;
ComponentRuntimeStats runtime_stats_;
#endif
};