mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
Stop using HAVE_G_THREAD_IMPL_INIT
Just always call the init function.
This commit is contained in:
parent
46af418e05
commit
7cf89847e2
@ -51,10 +51,7 @@ g_thread_init (GThreadFunctions *init)
|
||||
|
||||
already_done = TRUE;
|
||||
|
||||
#ifdef HAVE_G_THREAD_IMPL_INIT
|
||||
g_thread_impl_init();
|
||||
#endif /* HAVE_G_THREAD_IMPL_INIT */
|
||||
|
||||
g_thread_impl_init ();
|
||||
g_thread_functions_for_glib_use = g_thread_functions_for_glib_use_default;
|
||||
g_thread_init_glib ();
|
||||
}
|
||||
|
@ -129,8 +129,6 @@ static gulong g_thread_min_stack_size = 0;
|
||||
|
||||
#define G_MUTEX_SIZE (sizeof (pthread_mutex_t))
|
||||
|
||||
#if defined(_SC_THREAD_STACK_MIN) || defined (HAVE_PRIORITIES)
|
||||
#define HAVE_G_THREAD_IMPL_INIT
|
||||
static void
|
||||
g_thread_impl_init(void)
|
||||
{
|
||||
@ -146,7 +144,6 @@ g_thread_impl_init(void)
|
||||
}
|
||||
#endif /* HAVE_PRIORITIES */
|
||||
}
|
||||
#endif /* _SC_THREAD_STACK_MIN || HAVE_PRIORITIES */
|
||||
|
||||
static GMutex *
|
||||
g_mutex_new_posix_impl (void)
|
||||
|
@ -584,7 +584,6 @@ static GThreadFunctions g_thread_functions_for_glib_use_default =
|
||||
NULL /* no equal function necessary */
|
||||
};
|
||||
|
||||
#define HAVE_G_THREAD_IMPL_INIT
|
||||
static void
|
||||
g_thread_impl_init ()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user