consumeDirty method

bool consumeDirty()

Consumes the dirty mark. Returns true exactly once per dirty mark — the caller runs ONE audit; the next consume without a new signal returns false (no polling loop).

Implementation

bool consumeDirty() {
  if (!_dirty) return false;
  _dirty = false;
  _reasons.clear();
  _auditCount++;
  return true;
}