Bug 560676 - function access for g_threads_supported

2008-12-18  Mike Kestner <mkestner@novell.com>

	Bug 560676 - function access for g_threads_supported

	* glib/gthreads.c (g_thread_get_initialized): new accessor for
	g_threads_supported macro.
	* glib/gthreads.h: add g_thread_get_initialized

svn path=/trunk/; revision=7752
This commit is contained in:
Mike Kestner
2008-12-18 19:20:42 +00:00
committed by Mike Kestner
parent fc0ba86c69
commit 8bed68813e
3 changed files with 26 additions and 0 deletions

View File

@@ -974,5 +974,18 @@ g_thread_foreach (GFunc thread_func,
}
}
/**
* g_thread_get_initialized
*
* Indicates if g_thread_init() has been called.
*
* Since: 2.20
*/
gboolean
g_thread_get_initialized ()
{
return g_thread_supported ();
}
#define __G_THREAD_C__
#include "galiasdef.c"