From eac634575959a3d32007ebed9921897976c9a82d Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 12 Sep 2022 10:24:55 +0200 Subject: Loop flags: a simple idempotent event announcement mechanism --- sysdep/unix/io-loop.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysdep/unix/io-loop.h') diff --git a/sysdep/unix/io-loop.h b/sysdep/unix/io-loop.h index 31c40459..aec7a409 100644 --- a/sysdep/unix/io-loop.h +++ b/sysdep/unix/io-loop.h @@ -34,6 +34,9 @@ struct birdloop uint links; + _Atomic u32 flags; + struct birdloop_flag_handler *flag_handler; + void (*stopped)(void *data); void *stop_data; -- cgit v1.2.3