chiark / gitweb /
bus-proxy: share policy between threads
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 17 Jan 2015 17:07:58 +0000 (18:07 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 17 Jan 2015 17:27:23 +0000 (18:27 +0100)
commitc4bc1a8434f2a34840ea6f63064fa998ecfae738
treec10ae7cfd3864cc74fc83c997baaf45e81215b48
parentb58d857136496ee463223cd90af46512e9eef152
bus-proxy: share policy between threads

This implements a shared policy cache with read-write locks. We no longer
parse the XML policy in each thread.

This will allow us to easily implement ReloadConfig().
Makefile.am
src/bus-proxyd/bus-proxyd.c
src/bus-proxyd/bus-xml-policy.c
src/bus-proxyd/bus-xml-policy.h
src/bus-proxyd/driver.c
src/bus-proxyd/driver.h
src/bus-proxyd/proxy.c
src/bus-proxyd/proxy.h
src/bus-proxyd/stdio-bridge.c