diff options
author | Maria Matejka <mq@ucw.cz> | 2021-11-12 22:58:40 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-11-22 19:05:44 +0100 |
commit | 1b39473993abcc6180657c8d3bd5f9e12e4bc816 (patch) | |
tree | d7838d29bb29c53f4116a229b5a9758d0f5e22a6 /lib/resource.c | |
parent | adf37d8eff8f281871295c402a51ae1dd654851c (diff) |
Introducing basic RCU primitives for lock-less shared data structures
Diffstat (limited to 'lib/resource.c')
-rw-r--r-- | lib/resource.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |