# Test if a mutex is locked ( 1.2.13 )

**URL:** <https://discourse.libsdl.org/t/test-if-a-mutex-is-locked-1-2-13/16075>\
**Category:** SDL Development\
**Created:** [March 1, 2009, 4:52pm UTC](https://discourse.libsdl.org/t/test-if-a-mutex-is-locked-1-2-13/16075 "2009-03-01T16:52:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjan\_Houben](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/a/d78d45/32.png) [@Arjan\_Houben](https://discourse.libsdl.org/u/Arjan_Houben)\
**Post date:** [March 1, 2009, 4:52pm UTC](https://discourse.libsdl.org/t/test-if-a-mutex-is-locked-1-2-13/16075/1 "2009-03-01T16:52:32Z")

</div>

I was wondering, is there any way to check if a mutex is currently  
locked?

I’m working to release a new version of SDL\_ffmpeg, and I would like  
to be able to signal warnings to the user, if you use a function which  
expects a mutex-lock, when the mutex is not actually locked.

I don’t believe that the API of 1.2.13 provides which such a function,  
but maybe there is a way around this?

thanks in advance

- arjan
