Skip to content
Search

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?

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 ↩