core/schedule: fixup out of sync code comment (#9649)

This commit is contained in:
@RubenKelevra 2025-07-18 06:54:01 +02:00 committed by GitHub
parent ec5a517a76
commit f8146bd340
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -218,8 +218,7 @@ class Scheduler {
// Platforms without atomic support or single-threaded platforms
uint32_t last_millis_{0};
#endif
// millis_major_ is protected by lock when incrementing, volatile ensures
// reads outside the lock see fresh values (not cached in registers)
// millis_major_ is protected by lock when incrementing
uint16_t millis_major_{0};
uint32_t to_remove_{0};
};