py-sdl2
py-sdl2 copied to clipboard
Any support for SDL_CreateThread?
Would PySDL2 support SDL_CreateThread()?
@zeroxer Sorry for the slow reply, I've been busy over the holiday! Looking at the pysdl2 source the function isn't currently wrapped (nothing from the SDL_thread.h header has Python bindings).
It would be easy enough to add that function, but I honestly have no clue how it would behave given Python's threading model (would need thorough testing). What are you hoping to do with SDL_CreateThread that you couldn't with Python's multithreading/multiprocessing functions? If you have a specific simple use-case I could try it out.
Closing this due to inactivity, but please let me know if you'd like this reopened!
Shared objects between contexts doesn't seem to work with Python threads, so I wanted to try the SDL thread management system.