mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
Make --disable-threads work again. (#71034)
2002-02-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Make --disable-threads work again. (#71034) * gthread-impl.c: Only compile most of this file, if G_THREAD_ENABLED is set.
This commit is contained in:
parent
b99e2343e5
commit
9e240b85cc
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gobject/gvaluetransform.c: Register transformations for
|
* gobject/gvaluetransform.c: Register transformations for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gobject/gvaluetransform.c: Register transformations for
|
* gobject/gvaluetransform.c: Register transformations for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gobject/gvaluetransform.c: Register transformations for
|
* gobject/gvaluetransform.c: Register transformations for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gobject/gvaluetransform.c: Register transformations for
|
* gobject/gvaluetransform.c: Register transformations for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gobject/gvaluetransform.c: Register transformations for
|
* gobject/gvaluetransform.c: Register transformations for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gobject/gvaluetransform.c: Register transformations for
|
* gobject/gvaluetransform.c: Register transformations for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gobject/gvaluetransform.c: Register transformations for
|
* gobject/gvaluetransform.c: Register transformations for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gobject/gvaluetransform.c: Register transformations for
|
* gobject/gvaluetransform.c: Register transformations for
|
||||||
|
@ -1283,7 +1283,7 @@ case $have_threads in
|
|||||||
g_threads_impl="WIN32"
|
g_threads_impl="WIN32"
|
||||||
G_THREAD_LIBS=""
|
G_THREAD_LIBS=""
|
||||||
;;
|
;;
|
||||||
none)
|
none|no)
|
||||||
g_threads_impl="NONE"
|
g_threads_impl="NONE"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2002-01-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* gthread-solaris.c: Use g_free instead of free. Pointed out by
|
* gthread-solaris.c: Use g_free instead of free. Pointed out by
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
#ifdef G_THREAD_ENABLED
|
||||||
|
|
||||||
static gboolean thread_system_already_initialized = FALSE;
|
static gboolean thread_system_already_initialized = FALSE;
|
||||||
static gint g_thread_priority_map [G_THREAD_PRIORITY_URGENT + 1];
|
static gint g_thread_priority_map [G_THREAD_PRIORITY_URGENT + 1];
|
||||||
|
|
||||||
@ -285,7 +287,7 @@ g_thread_init_with_errorcheck_mutexes (GThreadFunctions* init)
|
|||||||
* of g_thread_functions_for_glib_use_default based on operating
|
* of g_thread_functions_for_glib_use_default based on operating
|
||||||
* system version, C library version, or whatever. */
|
* system version, C library version, or whatever. */
|
||||||
g_thread_impl_init();
|
g_thread_impl_init();
|
||||||
#endif
|
#endif /* HAVE_G_THREAD_IMPL_INIT */
|
||||||
|
|
||||||
errorcheck_functions = g_thread_functions_for_glib_use_default;
|
errorcheck_functions = g_thread_functions_for_glib_use_default;
|
||||||
errorcheck_functions.mutex_new = g_mutex_new_errorcheck_impl;
|
errorcheck_functions.mutex_new = g_mutex_new_errorcheck_impl;
|
||||||
@ -311,10 +313,6 @@ g_thread_init (GThreadFunctions* init)
|
|||||||
{
|
{
|
||||||
gboolean supported;
|
gboolean supported;
|
||||||
|
|
||||||
#ifndef G_THREADS_ENABLED
|
|
||||||
g_error ("GLib thread support is disabled.");
|
|
||||||
#endif /* !G_THREADS_ENABLED */
|
|
||||||
|
|
||||||
if (thread_system_already_initialized)
|
if (thread_system_already_initialized)
|
||||||
g_error ("GThread system may only be initialized once.");
|
g_error ("GThread system may only be initialized once.");
|
||||||
|
|
||||||
@ -390,3 +388,13 @@ g_thread_init (GThreadFunctions* init)
|
|||||||
/* we want the main thread to run with normal priority */
|
/* we want the main thread to run with normal priority */
|
||||||
g_thread_set_priority (g_thread_self(), G_THREAD_PRIORITY_NORMAL);
|
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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user