glib/gthread
Sebastian Wilhelmi 8e91cf9eb9 Fixes for #101264 and #99372:
2003-02-14  Sebastian Wilhelmi  <seppi@seppi.de>

	Fixes for #101264 and #99372:

	* glib/gconvert.h, glib/gmain.c, glib/gmem.c, glib/gmessages.c,
	glib/grand.c: Include gthreadinit.h and rename the thread
	initialization functions a bit and let them start with _, so that
	later we can stop exporting them.

	* glib/gmem.c, glib/gmessages.c: Move the g_private_new() calls to
	new functions. They have to be called after setting
	g_threads_got_initialized to TRUE (see #101264).

	* glib/gthread.c: Include gthreadinit.h. Renamed g_mutex_init() to
	g_thread_init_glib(). Call the thread initialization functions
	(which are not allowed to call g_private_new), then set
	g_threads_got_initialized to TRUE, then call the other thread
	initialization functions (which must not call anything but
	g_private_new()).

	* glib/gthreadinit.h: New private header to cleanly declare all
	thread initialization functions.

	* gthread/gthread-impl.c: Include gthreadinit.h. In
	g_thread_init() just call g_thread_init_glib(), which in turn calls the
	other functions (see #99372).

	* glib/Makefile.am: Added gthreadinit.h.
2003-02-14 15:08:46 +00:00
..
.cvsignore */.cvsignore: Add various Win32 related file types. 2001-11-24 18:53:03 +00:00
ChangeLog Fix two bugs: 1) If abs_time is NULL, should use infinite time. 2) Check 2002-11-25 23:08:27 +00:00
gthread-impl.c Fixes for #101264 and #99372: 2003-02-14 15:08:46 +00:00
gthread-none.c Add G_MUTEX_SIZE as needed for gthread-impl.c 2000-11-02 13:04:16 +00:00
gthread-posix.c Include config.h so DISABLE_MEMPOOLS actually has an effect. (#96437, 2002-11-04 20:09:48 +00:00
gthread-solaris.c Include config.h so DISABLE_MEMPOOLS actually has an effect. (#96437, 2002-11-04 20:09:48 +00:00
gthread-win32.c Fix two bugs: 1) If abs_time is NULL, should use infinite time. 2) Check 2002-11-25 23:08:27 +00:00
gthread.def Retract my change earlier today. Don't preset autoconf variables in a try 2001-09-26 20:35:51 +00:00
gthread.rc.in gmodule/gmodule.rc.in gobject/gobject.rc.in Hardcode 2.0 in the names, as 2002-11-21 03:08:50 +00:00
Makefile.am [Win32] Install also the .def files, to help users generate import 2003-01-04 06:47:14 +00:00
makefile.mingw.in Hardcode 2.0 in the names, as that is what Makefile.am does. 2002-11-21 03:25:35 +00:00
makefile.msc.in Hardcode 2.0 in the names, as that is what Makefile.am does. 2002-11-21 03:25:35 +00:00