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.
This commit is contained in:
Lennart Poettering
2013-05-17 04:26:27 +02:00
parent d5a2b9a6f4
commit 45fbe937d7
5 changed files with 45 additions and 8 deletions
+4
View File
@@ -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