+2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * configure.in: Make --disable-threads work again. (#71034)
+
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
* gobject/gvaluetransform.c: Register transformations for
+2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * configure.in: Make --disable-threads work again. (#71034)
+
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
* gobject/gvaluetransform.c: Register transformations for
+2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * configure.in: Make --disable-threads work again. (#71034)
+
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
* gobject/gvaluetransform.c: Register transformations for
+2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * configure.in: Make --disable-threads work again. (#71034)
+
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
* gobject/gvaluetransform.c: Register transformations for
+2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * configure.in: Make --disable-threads work again. (#71034)
+
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
* gobject/gvaluetransform.c: Register transformations for
+2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * configure.in: Make --disable-threads work again. (#71034)
+
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
* gobject/gvaluetransform.c: Register transformations for
+2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * configure.in: Make --disable-threads work again. (#71034)
+
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
* gobject/gvaluetransform.c: Register transformations for
+2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * configure.in: Make --disable-threads work again. (#71034)
+
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
* gobject/gvaluetransform.c: Register transformations for
g_threads_impl="WIN32"
G_THREAD_LIBS=""
;;
- none)
+ none|no)
g_threads_impl="NONE"
;;
*)
+2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthread-impl.c: Only compile most of this file, if
+ G_THREAD_ENABLED is set.
+
2002-01-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread-solaris.c: Use g_free instead of free. Pointed out by
#include <glib.h>
+#ifdef G_THREAD_ENABLED
+
static gboolean thread_system_already_initialized = FALSE;
static gint g_thread_priority_map [G_THREAD_PRIORITY_URGENT + 1];
* of g_thread_functions_for_glib_use_default based on operating
* system version, C library version, or whatever. */
g_thread_impl_init();
-#endif
+#endif /* HAVE_G_THREAD_IMPL_INIT */
errorcheck_functions = g_thread_functions_for_glib_use_default;
errorcheck_functions.mutex_new = g_mutex_new_errorcheck_impl;
{
gboolean supported;
-#ifndef G_THREADS_ENABLED
- g_error ("GLib thread support is disabled.");
-#endif /* !G_THREADS_ENABLED */
-
if (thread_system_already_initialized)
g_error ("GThread system may only be initialized once.");
/* we want the main thread to run with normal priority */
g_thread_set_priority (g_thread_self(), G_THREAD_PRIORITY_NORMAL);
}
+
+#else /* !G_THREADS_ENABLED */
+
+void
+g_thread_init (GThreadFunctions* init)
+{
+ g_error ("GLib thread support is disabled.");
+}
+
+#endif /* !G_THREADS_ENABLED */