SDL:ThreadIssue
lastmod 2018-08-17created 2015-11-042 edits
A summary of issues with using multiple threads in SDL.
Can I call SDL video functions from multiple threads?
- [Recommended] FAQ: Development
No, most graphics back ends are not thread-safe, so you should only call SDL video functions from the main thread of your application.
Is SDL multi-threaded?
- [Recommended] FAQ: Development
SDL provides simple cross-platform functions for the creation of threads and synchronization using mutexes. These are used internally by SDL for some implementations of the audio subsystem and input handling.
List of Thread-safe function
- SDL_PushEvent
Favorite site
- OpenGL: Multi-thread renderer a good idea?
- Stackoverflow: OpenGL Rendering in a secondary thread
- [Recommended] Multithreading with SDL 1
References
-
OSDL_-SDL_corner-_Multithreading_with_SDL.pdf ↩