GGUI::GGRevision class

GGRevision: a change counter the UI can watch.

The data's owner bumps it on change, from any thread. A component that called ui.Watch(revision) re-runs on the next UI update. It must outlive its watchers.

Public functions

void Bump()
Say the data changed. Any thread.
auto Get() const -> uint64_t
The count now: it changes on every Bump.