From 1b39473993abcc6180657c8d3bd5f9e12e4bc816 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Fri, 12 Nov 2021 22:58:40 +0100 Subject: Introducing basic RCU primitives for lock-less shared data structures --- lib/resource.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/resource.c') diff --git a/lib/resource.c b/lib/resource.c index 2d041ad5..0651406f 100644 --- a/lib/resource.c +++ b/lib/resource.c @@ -13,6 +13,7 @@ #include "nest/bird.h" #include "lib/resource.h" #include "lib/string.h" +#include "lib/rcu.h" /** * DOC: Resource pools @@ -284,6 +285,8 @@ rlookup(unsigned long a) void resource_init(void) { + rcu_init(); + root_pool.r.class = &pool_class; root_pool.name = "Root"; init_list(&root_pool.inside); -- cgit v1.2.3