Extended the comments on those functions, that are NOOPs, before

2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>

	* docs/reference/glib/tmpl/threads.sgml: Extended the comments on
	those functions, that are NOOPs, before g_thread_init() has been
	called. (#447583)

	* glib/gthread.c (g_static_mutex_free): Clarified comment to
	remind myself, tha calling g_static_mutex_free() before
	g_thread_init() is safe.


svn path=/trunk/; revision=5567
This commit is contained in:
Sebastian Wilhelmi
2007-06-15 17:03:13 +00:00
committed by Sebastian Wilhelmi
parent 49f802b83e
commit 16b4963816
3 changed files with 27 additions and 7 deletions

View File

@@ -230,7 +230,10 @@ g_static_mutex_free (GStaticMutex* mutex)
g_return_if_fail (mutex);
/* The runtime_mutex is the first (or only) member of GStaticMutex,
* see both versions (of glibconfig.h) in configure.in */
* see both versions (of glibconfig.h) in configure.in. Note, that
* this variable is NULL, if g_thread_init() hasn't been called or
* if we're using the default thread implementation and it provides
* static mutexes. */
runtime_mutex = ((GMutex**)mutex);
if (*runtime_mutex)