mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +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.
|
||||
</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.
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user