История изменений
Исправление GPFault, (текущая версия) :
https://wiki.libsdl.org/SDL3/FAQDevelopment#can-i-call-sdl-event-functions-from-multiple-threads
The main event handling should be done on the main thread, though you can use SDL_PushEvent() and SDL_PeepEvents() to interact with the event queue on other threads. Most SDL functions have their thread-safety noted in their documentation.
Вообще большинство графических библиотек не позволяют обрабатывать события вне основного потока, вцелом потому что так устроен нижний уровень API.
Используемый язык тут внезапно непричём
Исходная версия GPFault, :
https://wiki.libsdl.org/SDL3/FAQDevelopment#can-i-call-sdl-event-functions-from-multiple-threads
The main event handling should be done on the main thread, though you can use SDL_PushEvent() and SDL_PeepEvents() to interact with the event queue on other threads. Most SDL functions have their thread-safety noted in their documentation.
Вообще большинство графических библиотек не позволяют обрабатывать собфтия вне основного потока, вцелом потому что так устроен нижний уровень API.
Используемый язык тут внезапно непричём