summaryrefslogtreecommitdiffstats
path: root/lib/frr_pthread.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-04-03 00:51:20 +0200
committerDavid Lamparter <equinox@diac24.net>2019-07-31 03:34:09 +0200
commit3e41733f1bbe9ccd7d08441f5962b3dc6db2c644 (patch)
tree1b124e0d8445624aea99d9ce21544bf76e9bec8d /lib/frr_pthread.h
parentlib/seqlock: add a few more comments (diff)
downloadfrr-3e41733f1bbe9ccd7d08441f5962b3dc6db2c644.tar.xz
frr-3e41733f1bbe9ccd7d08441f5962b3dc6db2c644.zip
lib: RCU
Please refer to doc/developer/rcu.rst for documentation. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/frr_pthread.h')
-rw-r--r--lib/frr_pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/frr_pthread.h b/lib/frr_pthread.h
index 3afe7ba96..6096a5037 100644
--- a/lib/frr_pthread.h
+++ b/lib/frr_pthread.h
@@ -23,6 +23,7 @@
#include <pthread.h>
#include "frratomic.h"
#include "memory.h"
+#include "frrcu.h"
#include "thread.h"
#ifdef __cplusplus
@@ -50,6 +51,8 @@ struct frr_pthread {
/* pthread id */
pthread_t thread;
+ struct rcu_thread *rcu_thread;
+
/* thread master for this pthread's thread.c event loop */
struct thread_master *master;