diff options
author | Maria Matejka <mq@ucw.cz> | 2022-02-02 11:20:53 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-02-03 10:30:33 +0100 |
commit | d262695d4e8ddee7b9408bb726b4100f68d217d7 (patch) | |
tree | 9ff1286e67892bbbf3abf75eeebacb2f0afc538f /lib | |
parent | 09380db594e1befb991be626b36783cae525d823 (diff) |
BFD: direct notifications to protocol loops
Diffstat (limited to 'lib')
-rw-r--r-- | lib/event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/event.h b/lib/event.h index 3af33a7f..cbabfc66 100644 --- a/lib/event.h +++ b/lib/event.h @@ -63,6 +63,7 @@ static inline void ev_init_cork(struct event_cork *ec, const char *name) }; void ev_send(event_list *, event *); +#define ev_send_self(e) ({ ASSERT_DIE((e)->list); ev_send((e)->list, (e)); }) #define ev_send_loop(l, e) ev_send(birdloop_event_list((l)), (e)) #define ev_schedule(e) ({ ASSERT_THE_BIRD_LOCKED; if (!ev_active((e))) ev_send(&global_event_list, (e)); }) |