Redo NotfifierRegistry to no longer rely on StateAccess.

We simplify the API to a simple Modified() operation.
This commit is contained in:
Robin Sommer 2019-06-06 02:49:18 +00:00
parent c0c5dccd06
commit 02214dafc4
3 changed files with 80 additions and 70 deletions

View file

@ -61,9 +61,9 @@ public:
{ d->Add("<trigger>"); }
// Overidden from Notifier. We queue the trigger and evaluate it
// later to avoid race conditions.
void Access(ID* id, const StateAccess& sa) override
void Modified(ID* id) override
{ QueueTrigger(this); }
void Access(Val* val, const StateAccess& sa) override
void Modified(Val* val) override
{ QueueTrigger(this); }
const char* Name() const override;