From 45fbe937d7ca8d0da9ea276d57bc70ebd41c285e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 17 May 2013 03:13:58 +0200 Subject: bus: add minimal locking around the memfd cache We want to allow clients to process an sd_bus_message on a different thread than it was received on. Since unreffing a bus message might readd some of its memfds to the memfd cache add some minimal locking around the cache. --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 526598277a..66f12e9037 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1749,6 +1749,10 @@ libsystemd_bus_la_LIBADD = \ libsystemd-shared.la \ libsystemd-daemon.la +libsystemd_bus_la_CFLAGS = \ + $(AM_CFLAGS) \ + -pthread + noinst_LTLIBRARIES += \ libsystemd-bus.la -- cgit v1.2.3-54-g00ecf