call an detector

This commit is contained in:
2026-01-09 19:13:21 +01:00
parent ab6e8766b8
commit 3fad4949b1
2 changed files with 28 additions and 0 deletions

View File

@@ -19,6 +19,10 @@ public:
value = v;
}
void call() {
for (size_t i = 0; i < MaxObservers; ++i) seen[i] = false;
}
bool changed(size_t id) {
if (id >= MaxObservers) return false;
if (!seen[id]) {