mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-03 03:52:36 +00:00
65e462a6f2873db6af6cc476d3331a426bdcbc2e
This avoids situations like: - PulseAudio holds its own lock in the hotplug thread. - The hotplug thread notices a device went away. - The hotplug thread calls SDL_AudioDeviceDisconnected(). - SDL_AudioDeviceDisconnected() tries to grab the device lock. - The device thread is holding the device lock... - ...but is currently waiting on PulseAudio's lock to release. In short: deadlock. It's better to queue this work to run on the main thread, where we can guarantee a start with _none_ of the audio subsystem locks held.
Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.
You can find the latest release and additional information at: https://www.libsdl.org/
Installation instructions and a quick introduction is available in INSTALL.md
This library is distributed under the terms of the zlib license, available in LICENSE.txt.
Enjoy!
Sam Lantinga (slouken@libsdl.org)
Languages
C
86.4%
C++
5.8%
Objective-C
3.4%
CMake
1.6%
Perl
0.8%
Other
1.7%