From 93d40918c59981f863d31a10d9f66a2a9b3177ff Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Sat, 1 Aug 2009 16:46:02 +0100 Subject: [PATCH] Added clarification to mutex free functions Clarified that it is A Bad Idea to free a mutex when it's locked. --- docs/reference/glib/tmpl/threads.sgml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/reference/glib/tmpl/threads.sgml b/docs/reference/glib/tmpl/threads.sgml index 3ee9d61c3..58c62bdd1 100644 --- a/docs/reference/glib/tmpl/threads.sgml +++ b/docs/reference/glib/tmpl/threads.sgml @@ -693,6 +693,12 @@ called, and, in that case, will do nothing. Destroys @mutex. + + +Calling g_mutex_free() on a locked mutex may result in undefined behaviour. + + + @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. + + +Calling g_static_mutex_free() on a locked mutex may result in undefined behaviour. + + + @mutex: a #GStaticMutex to be freed.