mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Redo NotfifierRegistry to no longer rely on StateAccess.
We simplify the API to a simple Modified() operation.
This commit is contained in:
parent
c0c5dccd06
commit
02214dafc4
3 changed files with 80 additions and 70 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue