1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-17 09:13:45 +01:00

Merge branch 'integration' into memory_api

This commit is contained in:
J. Nick Koston
2025-08-18 17:13:49 -05:00

View File

@@ -241,7 +241,8 @@ class Scheduler {
// Helper to check if item is marked for removal (platform-specific)
// Returns true if item should be skipped, handles platform-specific synchronization
// NOTE: For ESPHOME_THREAD_MULTI_NO_ATOMICS, caller must hold lock!
// For ESPHOME_THREAD_MULTI_NO_ATOMICS platforms, the caller must hold the scheduler lock before calling this
// function.
bool is_item_removed_(SchedulerItem *item) const {
#ifdef ESPHOME_THREAD_MULTI_ATOMICS
// Multi-threaded with atomics: use atomic load for lock-free access
@@ -255,7 +256,8 @@ class Scheduler {
}
// Helper to mark item for removal (platform-specific)
// NOTE: For ESPHOME_THREAD_MULTI_NO_ATOMICS, caller must hold lock!
// For ESPHOME_THREAD_MULTI_NO_ATOMICS platforms, the caller must hold the scheduler lock before calling this
// function.
void mark_item_removed_(SchedulerItem *item) {
#ifdef ESPHOME_THREAD_MULTI_ATOMICS
// Multi-threaded with atomics: use atomic store