1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-02-10 12:55:48 +01:00

Do not define function g_thread_init_glib, if not G_THREADS_ENABLED. It's

2003-03-14  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gthread.c: Do not define function g_thread_init_glib, if
	not G_THREADS_ENABLED. It's not called bu g_thread_init() then,
	but calls other, in that case undefined functions.
This commit is contained in:
Sebastian Wilhelmi 2003-03-14 14:29:21 +00:00 committed by Sebastian Wilhelmi
parent c2a431c894
commit 3030dcbd7e
7 changed files with 38 additions and 0 deletions

@ -1,3 +1,9 @@
2003-03-14 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gthread.c: Do not define function g_thread_init_glib, if
not G_THREADS_ENABLED. It's not called bu g_thread_init() then,
but calls other, in that case undefined functions.
2003-03-06 Matthias Clasen <maclas@gmx.de> 2003-03-06 Matthias Clasen <maclas@gmx.de>
* glib/gmain.c (g_main_context_find_source_by_id): * glib/gmain.c (g_main_context_find_source_by_id):

@ -1,3 +1,9 @@
2003-03-14 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gthread.c: Do not define function g_thread_init_glib, if
not G_THREADS_ENABLED. It's not called bu g_thread_init() then,
but calls other, in that case undefined functions.
2003-03-06 Matthias Clasen <maclas@gmx.de> 2003-03-06 Matthias Clasen <maclas@gmx.de>
* glib/gmain.c (g_main_context_find_source_by_id): * glib/gmain.c (g_main_context_find_source_by_id):

@ -1,3 +1,9 @@
2003-03-14 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gthread.c: Do not define function g_thread_init_glib, if
not G_THREADS_ENABLED. It's not called bu g_thread_init() then,
but calls other, in that case undefined functions.
2003-03-06 Matthias Clasen <maclas@gmx.de> 2003-03-06 Matthias Clasen <maclas@gmx.de>
* glib/gmain.c (g_main_context_find_source_by_id): * glib/gmain.c (g_main_context_find_source_by_id):

@ -1,3 +1,9 @@
2003-03-14 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gthread.c: Do not define function g_thread_init_glib, if
not G_THREADS_ENABLED. It's not called bu g_thread_init() then,
but calls other, in that case undefined functions.
2003-03-06 Matthias Clasen <maclas@gmx.de> 2003-03-06 Matthias Clasen <maclas@gmx.de>
* glib/gmain.c (g_main_context_find_source_by_id): * glib/gmain.c (g_main_context_find_source_by_id):

@ -1,3 +1,9 @@
2003-03-14 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gthread.c: Do not define function g_thread_init_glib, if
not G_THREADS_ENABLED. It's not called bu g_thread_init() then,
but calls other, in that case undefined functions.
2003-03-06 Matthias Clasen <maclas@gmx.de> 2003-03-06 Matthias Clasen <maclas@gmx.de>
* glib/gmain.c (g_main_context_find_source_by_id): * glib/gmain.c (g_main_context_find_source_by_id):

@ -1,3 +1,9 @@
2003-03-14 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gthread.c: Do not define function g_thread_init_glib, if
not G_THREADS_ENABLED. It's not called bu g_thread_init() then,
but calls other, in that case undefined functions.
2003-03-06 Matthias Clasen <maclas@gmx.de> 2003-03-06 Matthias Clasen <maclas@gmx.de>
* glib/gmain.c (g_main_context_find_source_by_id): * glib/gmain.c (g_main_context_find_source_by_id):

@ -155,6 +155,7 @@ static GSList *g_thread_free_indeces = NULL;
G_LOCK_DEFINE_STATIC (g_thread); G_LOCK_DEFINE_STATIC (g_thread);
#ifdef G_THREADS_ENABLED
/* This must be called only once, before any threads are created. /* This must be called only once, before any threads are created.
* It will only be called from g_thread_init() in -lgthread. * It will only be called from g_thread_init() in -lgthread.
*/ */
@ -195,6 +196,7 @@ g_thread_init_glib (void)
_g_messages_thread_private_init (); _g_messages_thread_private_init ();
} }
#endif /* G_THREADS_ENABLED */
void void
g_static_mutex_init (GStaticMutex *mutex) g_static_mutex_init (GStaticMutex *mutex)