Don't call g_thread_init(), we don't want to link to -lgthread if we don't

Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
	g_thread_init(), we don't want to link to -lgthread if we don't
	have to.
This commit is contained in:
Owen Taylor
2001-10-22 14:14:33 +00:00
committed by Owen Taylor
parent 97ff064f22
commit 7da0a01b88
9 changed files with 44 additions and 6 deletions

View File

@ -516,8 +516,7 @@ gdk_threads_leave ()
*
* Initializes GDK so that it can be used from multiple threads
* in conjunction with gdk_threads_enter() and gdk_threads_leave().
* If g_thread_init() has not yet been called, calls
* g_thread_init(NULL).
* g_thread_init() must be called previous to this function.
*
* This call must be made before any use of the main loop from
* GTK+; to be safe, call it before gtk_init().
@ -526,7 +525,7 @@ void
gdk_threads_init ()
{
if (!g_thread_supported ())
g_thread_init (NULL);
g_error ("g_thread_init() must be called before gdk_threads_init()");
gdk_threads_mutex = g_mutex_new ();
}