SDL/src
Sam Lantinga f4a56d7e61 Enable thread-safety features in libdbus
There are multiple SDL APIs that internally sink into dbus calls, e.g. battery
status, thread priority. If those calls happen in different threads simultaneously
it can result in dbus crashes.

To abide by dbus's multithreading guidelines we must call dbus_threads_init_default()
to enable dbus's internal locking mechanisms:
https://dbus.freedesktop.org/doc/api/html/group__DBusThreads.html#gac7b8a7001befc3eaa8c6b043151008dc

Additionally, access to a DBusMessage must be synchronized between threads.
SDL was already abiding that guideline as the DBusMessage structs aren't shared.

The following email from the dbus mailing list hints that arbitrating access to
the DBusConnection on the SDL may also be required:
https://lists.freedesktop.org/archives/dbus/2017-September/017306.html
2020-03-30 14:26:15 -07:00
..
atomic Add basic support for compiling on RISC OS 2020-02-13 20:50:47 +00:00
audio coreaudio: The default SDL audio device now tracks the system output default. 2020-03-29 01:54:00 -04:00
core Enable thread-safety features in libdbus 2020-03-30 14:26:15 -07:00
cpuinfo Improved CPU detection on ARM platforms 2020-02-04 16:46:22 +00:00
dynapi virtual joysticks: removed ball support (Bug 5028) 2020-03-15 13:25:49 -04:00
events Fixed warnings building with mingw64 2020-03-08 21:24:06 -07:00
file Fixed compile warning 2020-02-10 13:59:05 -08:00
filesystem Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
haptic Fixed bug 3446 - The haptic API does not allow to select the direction axes 2020-03-17 14:18:05 -07:00
hidapi Removed blacklist entries for devices that aren't game controllers, allow Steam Controllers 2020-03-20 20:53:26 -07:00
joystick joystick: Make sure recentering events happen before disconnect events. 2020-03-26 18:47:04 -04:00
libm Fixed compiler warning 2020-01-29 20:09:16 -08:00
loadso Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
main Backed out changeset 51622f74dc85 2020-03-10 18:35:31 -07:00
power Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
render opengl: Don't enable/disable texturing except when actually rendering. 2020-03-22 14:32:47 -04:00
sensor Fixed bug 5052 - Interval between SDL_SENSORUPDATE events for gyroscopes is too high 2020-03-23 12:10:05 -07:00
stdlib Fixed bug 5022 - SDL_iconv_string can get stuck in an infinite loop when encountering invalid characters 2020-03-10 16:29:28 -07:00
test test: Reimplemented SDLTest_CommonUsage() to restore binary compatibility. 2020-02-12 13:09:38 -05:00
thread thread: Put all important SDL_CreateThread internal data into SDL_Thread. 2020-03-26 22:14:59 -04:00
timer Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
video Fixed Bug 4883, redux - connect SDL_GetDisplayDPI to UIKit_GetDisplayDPI 2020-03-28 15:43:55 -04:00
SDL.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_assert.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_assert_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_error.c Added SDL_GetErrorMsg() to get the error message in a thread-safe way 2020-03-13 21:28:09 -07:00
SDL_error_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_hints.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_hints_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_internal.h SDL_LEAN_AND_MEAN defaults off 2020-01-23 01:03:23 -08:00
SDL_log.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00