mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Introducing basic RCU primitives for lock-less shared data structures
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user