summaryrefslogtreecommitdiff
path: root/sysdep/unix/io-loop.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-11-12 22:58:40 +0100
committerMaria Matejka <mq@ucw.cz>2022-08-02 10:00:21 +0200
commit058ed711397df75350d905fc135758a6470c0143 (patch)
treecb779bc2414645de59b2d80f9b08bbe58772f8d1 /sysdep/unix/io-loop.h
parentf1d6c66a78758449f00ed709891e24ab3571cc9c (diff)
Introducing basic RCU primitives for lock-less shared data structures
Diffstat (limited to 'sysdep/unix/io-loop.h')
-rw-r--r--sysdep/unix/io-loop.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdep/unix/io-loop.h b/sysdep/unix/io-loop.h
index ca4322fc..31c40459 100644
--- a/sysdep/unix/io-loop.h
+++ b/sysdep/unix/io-loop.h
@@ -7,6 +7,8 @@
#ifndef _BIRD_SYSDEP_UNIX_IO_LOOP_H_
#define _BIRD_SYSDEP_UNIX_IO_LOOP_H_
+#include "lib/rcu.h"
+
struct birdloop
{
pool *pool;
@@ -28,6 +30,8 @@ struct birdloop
pthread_t thread_id;
pthread_attr_t thread_attr;
+ struct rcu_birdloop rcu;
+
uint links;
void (*stopped)(void *data);