flagsChanged
flagsChanged is a term used in software engineering to denote an event, notification, or callback that occurs when a set of bitwise flags changes. A flags variable is typically a bitmask in which each bit represents a discrete option or feature. When the value of the bitmask changes, an implementation may raise a flagsChanged signal to inform interested components about the update.
Change detection can be implemented in various ways: a property setter, an atomic update, or a dedicated
Observers subscribe to flagsChanged to react to enable/disable of features, UI state updates, or configuration reconfiguration.
Practical considerations include thread-safety, avoiding re-entrancy problems, and ensuring a consistent change order when multiple code
See also: bitmask, feature flags, property change notification, observer pattern, signals and slots, KVO, event-driven design.