From e478b65ea5fe20ea714a4e78be051a8aa7583ece Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 4 Jan 2013 08:27:00 -0500 Subject: [PATCH] Improve g_cond_wait docs Document that the mutex is locked upon return. https://bugzilla.gnome.org/show_bug.cgi?id=691110 --- glib/gthread-posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c index 68c633c..e65e437 100644 --- a/glib/gthread-posix.c +++ b/glib/gthread-posix.c @@ -727,6 +727,8 @@ g_cond_clear (GCond *cond) * @mutex: a #GMutex that is currently locked * * Atomically releases @mutex and waits until @cond is signalled. + * When this function returns, @mutex is locked again and owned by the + * calling thread. * * When using condition variables, it is possible that a spurious wakeup * may occur (ie: g_cond_wait() returns even though g_cond_signal() was -- 2.7.4