From d262695d4e8ddee7b9408bb726b4100f68d217d7 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 2 Feb 2022 11:20:53 +0100 Subject: BFD: direct notifications to protocol loops --- lib/event.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/event.h') 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)); }) -- cgit v1.2.3