Added clarification to mutex free functions

Clarified that it is A Bad Idea to free a mutex when it's locked.
This commit is contained in:
Philip Withnall 2009-08-01 16:46:02 +01:00
parent faccd7fdf3
commit 93d40918c5

View File

@ -693,6 +693,12 @@ called, and, in that case, will do nothing.
Destroys @mutex.
</para>
<note>
<para>
Calling g_mutex_free() on a locked mutex may result in undefined behaviour.
</para>
</note>
@mutex: a #GMutex.
@ -837,6 +843,12 @@ unbounded lifetime, i.e. objects declared 'static', but if you have a
you should also free the #GStaticMutex.
</para>
<note>
<para>
Calling g_static_mutex_free() on a locked mutex may result in undefined behaviour.
</para>
</note>
@mutex: a #GStaticMutex to be freed.