Helper class for managing object configuration and activation lifecycle. More...
| Header: | #include <ConfigureHelper> |
| Since: | 1.0 |
ConfigureHelper tracks whether an object has been properly configured and activated, with optional logging of state changes and warnings. It enforces proper lifecycle ordering: construction, configuration, activation, deactivation, destruction.
The state is safe to read from any thread. The flags are atomic, and a mutex guards the failure reason. An AsyncStore worker reads the helper of a SimpleDataStore subclass when it loads or saves, while the owner configures and activates it on its own thread. The owner must still do each configure() and activate() on one thread.
See also MethodGate.