]> git.puffer.fish Git - mirror/frr.git/commit
lib: introduce a read-write lock for northbound configurations
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 3 Apr 2019 19:31:18 +0000 (16:31 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 26 Apr 2019 21:04:22 +0000 (18:04 -0300)
commit83981138fe8c1e0a40b8dede74eca65449dda5de
treecd22f38c39e38eb1fb9f0dd7354fe19480523fba
parent364ad673c885d741d575e97dbae70bf6d7c8f36e
lib: introduce a read-write lock for northbound configurations

The upcoming gRPC-based northbound plugin will run on a separate
pthread, and it will need to have access to the running configuration
global variable.  Introduce a rw-lock to control concurrent access
to the running configuration. Add the lock inside the "nb_config"
structure so that it can be used to protect candidate configurations
as well (this might be necessary depending on the threading scheme
of future northbound plugins).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
isisd/isis_cli.c
lib/command.c
lib/if.c
lib/libfrr.c
lib/northbound.c
lib/northbound.h
lib/northbound_cli.c
lib/northbound_confd.c
lib/northbound_sysrepo.c
lib/vty.c