[SDL] How to check if a mutex is locked?

Jonathan Dearborn grimfang4 at gmail.com
Thu Sep 11 13:18:43 PDT 2014


I think what you'd want is to SDL_WaitThread() in your main thread to be
sure that all other threads are done processing.  If other threads process
in a continuous loop, use a mutexed variable or a message queue to tell the
other thread to quit the loop and let the thread end.

Jonny D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140911/7224a916/attachment-0002.htm>


More information about the SDL mailing list