mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
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:
parent
faccd7fdf3
commit
93d40918c5
@ -693,6 +693,12 @@ called, and, in that case, will do nothing.
|
|||||||
Destroys @mutex.
|
Destroys @mutex.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
Calling g_mutex_free() on a locked mutex may result in undefined behaviour.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
@mutex: a #GMutex.
|
@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.
|
you should also free the #GStaticMutex.
|
||||||
</para>
|
</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.
|
@mutex: a #GStaticMutex to be freed.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user