summaryrefslogtreecommitdiff
path: root/lib/frr_pthread.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-08-08 08:41:07 -0400
committerGitHub <noreply@github.com>2019-08-08 08:41:07 -0400
commit76eb017923497a173815c47cdb6f9852efd5bcb5 (patch)
tree5574246fe9b64ef908d40b30e5285068cf6690b8 /lib/frr_pthread.h
parent3a738964ec92473c21a5fe75a7fa8de28a344ff8 (diff)
parent3e41733f1bbe9ccd7d08441f5962b3dc6db2c644 (diff)
Merge pull request #4497 from opensourcerouting/rcu
RCU support
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 3afe7ba966..6096a50370 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;