mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-04 17:38:09 +02:00
This lets them be thread-safe by default, at the cost that they can now fail. init_uninitialized_locks() and init_global_locks() must now both reimplement the equivalent of _dbus_register_shutdown_func(), by using _dbus_platform_rmutex_lock() on the same underlying mutex around a call to _dbus_register_shutdown_func_unlocked(). This is because if they used the usual _DBUS_LOCK() API (as _dbus_register_shutdown_func() does), it would automatically try to initialize global locking, leading to infinite recursion. 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: Anas Nashif <anas.nashif@intel.com> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile.am | ||
| run-test-systemserver.sh | ||
| run-test.sh | ||
| test-activation-forking.py | ||
| test-autolaunch.c | ||
| test-ids.c | ||
| test-pending-call-dispatch.c | ||
| test-pending-call-timeout.c | ||
| test-privserver-client.c | ||
| test-privserver.c | ||
| test-shutdown.c | ||
| test-threads-init.c | ||
| test-wait-for-echo.py | ||
| tmp-session-like-system.conf | ||