Skip to content

SDL:ThreadIssue

SDL에서 멀티스레드 사용에 대한 이슈를 정리한다.

Can I call SDL video functions from multiple threads?

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?

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

References


  1. OSDL_-SDL_corner-_Multithreading_with_SDL.pdf