dbus/cmake
Simon McVittie c80c20af46 Replace individual global-lock variables with an array of DBusRMutex *
This means we can use a much simpler code structure in data-slot
allocators: instead of giving them a DBusRMutex ** at first-allocation,
we can just give them an index into the array, which can be done
statically.

It doesn't make us any more thread-safe-by-default - the mutexes will
only actually be used if threads were already initialized - but it's
substantially better than nothing.

These locks really do have to be recursive: for instance,
internal_bus_get() calls dbus_bus_register() under the bus lock,
and dbus_bus_register() can call _dbus_connection_close_possibly_shared(),
which takes the bus lock.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54972
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Alban Crequy <alban.crequy@collabora.co.uk>
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Reviewed-by: Anas Nashif <anas.nashif@intel.com>
2013-06-17 16:53:51 +01:00
..
bus XML: hard depends on expat and delete libxml 2013-06-06 13:02:24 +01:00
dbus dbus_threads_init_default, dbus_threads_init: be safe to call at any time 2013-05-10 11:35:08 +01:00
doc CMake linux fixes when using meinproc4 doc generator. 2013-03-04 18:27:08 +01:00
modules XML: hard depends on expat and delete libxml 2013-06-06 13:02:24 +01:00
test Revert "made session service dirs customizable: cmake part" 2012-01-04 18:20:15 +00:00
tools Moved docbook sources used by cmake into doc subdir and adapted cmake build system. 2013-02-14 13:27:22 +00:00
bus-test.bat.cmake * cmake: new directory, contains cmake build support. 2007-03-03 14:32:17 +00:00
CMakeLists.txt XML: hard depends on expat and delete libxml 2013-06-06 13:02:24 +01:00
config.h.cmake Rename default_message_unix_fds to DEFAULT_MESSAGE_UNIX_FDS 2013-04-18 19:21:51 +01:00
ConfigureChecks.cmake Use dbus/dbus-arch-deps.h.in as source for cmake too 2011-09-23 15:38:12 +02:00
dbus-env.bat.cmake Split DBUS_SESSION_BUS_DEFAULT_ADDRESS into listen, connect addresses and set better defaults 2012-08-13 19:57:13 +01:00
Doxyfile.cmake Replace individual global-lock variables with an array of DBusRMutex * 2013-06-17 16:53:51 +01:00