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

Starg steve at coldbeamgames.com
Thu Sep 11 11:52:48 PDT 2014


Hi there,

Is there a way to check if a mutex is locked?

The only way I can see how to do it at the moment is to try and lock it. If it isn't locked I can then unlock it, and if it is locked I get a SDL_MUTEX_TIMEDOUT value back.

However, this seems like a clumsy solution.

Cheers,
Steve




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140911/5413b973/attachment-0001.htm>


More information about the SDL mailing list