mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
Remove a bunch of lingering g_thread_init()
After this patch, there is but one remaining use of g_thread_init(), which is in tests/slice-threadinit.c, a testcase dedicated to testing the functionality of gslice across a g_thread_init() boundary. This testcase is pretty meaningless these days... probably we should delete it.
This commit is contained in:
parent
e66abbe2ef
commit
210b1f8b42
@ -185,8 +185,6 @@ main (int argc, char *argv[])
|
|||||||
gint sort_interval;
|
gint sort_interval;
|
||||||
gchar *msg G_GNUC_UNUSED;
|
gchar *msg G_GNUC_UNUSED;
|
||||||
|
|
||||||
g_thread_init (NULL);
|
|
||||||
|
|
||||||
basic_tests ();
|
basic_tests ();
|
||||||
|
|
||||||
PRINT_MSG (("creating async queue..."));
|
PRINT_MSG (("creating async queue..."));
|
||||||
|
@ -164,9 +164,6 @@ main (int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TEST_THREAD
|
|
||||||
g_thread_init (NULL);
|
|
||||||
#endif
|
|
||||||
main_loop = g_main_loop_new (NULL, FALSE);
|
main_loop = g_main_loop_new (NULL, FALSE);
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
@ -357,9 +357,6 @@ main (int argc,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n_threads)
|
|
||||||
g_thread_init (NULL);
|
|
||||||
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
{
|
{
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
|
@ -398,14 +398,12 @@ recurser_start (gpointer data)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc,
|
main (int argc,
|
||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
g_thread_init (NULL);
|
|
||||||
|
|
||||||
context_array = g_ptr_array_new ();
|
context_array = g_ptr_array_new ();
|
||||||
|
|
||||||
crawler_array = g_ptr_array_new ();
|
crawler_array = g_ptr_array_new ();
|
||||||
|
@ -124,8 +124,6 @@ main (int argc,
|
|||||||
g_assert (p == &dummy_value);
|
g_assert (p == &dummy_value);
|
||||||
p = initializer2();
|
p = initializer2();
|
||||||
g_assert (p == &dummy_value);
|
g_assert (p == &dummy_value);
|
||||||
/* setup threads */
|
|
||||||
g_thread_init (NULL);
|
|
||||||
/* start multiple threads for initializer3() */
|
/* start multiple threads for initializer3() */
|
||||||
g_mutex_lock (&tmutex);
|
g_mutex_lock (&tmutex);
|
||||||
for (i = 0; i < N_THREADS; i++)
|
for (i = 0; i < N_THREADS; i++)
|
||||||
|
@ -264,8 +264,6 @@ main (int argc,
|
|||||||
seedp = &seed32;
|
seedp = &seed32;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_thread_init (NULL);
|
|
||||||
|
|
||||||
if (argc <= 1)
|
if (argc <= 1)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
|
@ -382,7 +382,6 @@ int
|
|||||||
main (int argc,
|
main (int argc,
|
||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
g_thread_init (NULL);
|
|
||||||
run_all_tests ();
|
run_all_tests ();
|
||||||
|
|
||||||
/* Now we rerun all tests, but this time we fool the system into
|
/* Now we rerun all tests, but this time we fool the system into
|
||||||
|
@ -452,8 +452,6 @@ test_check_start_and_stop (gpointer user_data)
|
|||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
g_thread_init (NULL);
|
|
||||||
|
|
||||||
DEBUG_MSG (("Starting... (in one second)"));
|
DEBUG_MSG (("Starting... (in one second)"));
|
||||||
g_timeout_add (1000, test_check_start_and_stop, NULL);
|
g_timeout_add (1000, test_check_start_and_stop, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user