SDL:ThreadIssue
SDL에서 멀티스레드 사용에 대한 이슈를 정리한다.
Can I call SDL video functions from multiple threads?
- [추천] 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?
- [추천] 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
- [추천] Multithreading with SDL 1
References
-
OSDL_-SDL_corner-_Multithreading_with_SDL.pdf ↩