diff options
author | Maria Matejka <mq@ucw.cz> | 2022-09-12 10:24:55 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-09-18 16:33:51 +0200 |
commit | eac634575959a3d32007ebed9921897976c9a82d (patch) | |
tree | a263dd20f62c90b456fb4836705903f516e406fa /sysdep/unix/io-loop.h | |
parent | 66f27005ec1a3e1fa78733aad56dcd976fbb2744 (diff) |
Loop flags: a simple idempotent event announcement mechanism
Diffstat (limited to 'sysdep/unix/io-loop.h')
-rw-r--r-- | sysdep/unix/io-loop.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; |