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

Alvin Beach alvinbeach at gmail.com
Thu Sep 11 12:25:44 PDT 2014

On 11/09/14 15:52, Starg wrote:
> 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

Is this what you are looking for?




More information about the SDL mailing list