Last commit was wrong, fixing it up
G_GNUC_INTERNAL void
g_thread_win32_init (void)
{
- if (!g_thread_lookup_native_funcs ())
- g_thread_xp_init ();
+ if (g_thread_lookup_native_funcs ())
+ fprintf (stderr, "(debug) GThread using native mode\n");
+ else
+ {
+ fprintf (stderr, "(debug) GThread using Windows XP mode\n");
+ g_thread_xp_init ();
+ }
InitializeCriticalSection (&g_private_lock);
}
AM_CPPFLAGS = \
$(glib_INCLUDES) \
-DG_LOG_DOMAIN=\"GThread\" \
- -DGLIB_COMPILATION \
@GTHREAD_COMPILE_IMPL_DEFINES@ \
@GLIB_DEBUG_FLAGS@
void
g_thread_init (gpointer init)
{
+ if (init != NULL)
+ g_warning ("GThread system no longer supports custom thread implementations.");
}
void
g_thread_init_with_errorcheck_mutexes (gpointer vtable)
{
+ g_assert (vtable == NULL);
+ g_warning ("GThread system no longer supports errorcheck mutexes.");
}