mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
Fix compiler warnings
This commit is contained in:
@@ -107,13 +107,12 @@ tester_init_thread (gpointer data)
|
||||
static void
|
||||
test_threaded_class_init (void)
|
||||
{
|
||||
GThread *threads[3] = { NULL, };
|
||||
/* pause newly created threads */
|
||||
g_mutex_lock (sync_mutex);
|
||||
/* create threads */
|
||||
threads[0] = g_thread_create (tester_init_thread, (gpointer) my_tester0_get_type(), TRUE, NULL);
|
||||
threads[1] = g_thread_create (tester_init_thread, (gpointer) my_tester1_get_type(), TRUE, NULL);
|
||||
threads[2] = g_thread_create (tester_init_thread, (gpointer) my_tester2_get_type(), TRUE, NULL);
|
||||
g_thread_create (tester_init_thread, (gpointer) my_tester0_get_type(), TRUE, NULL);
|
||||
g_thread_create (tester_init_thread, (gpointer) my_tester1_get_type(), TRUE, NULL);
|
||||
g_thread_create (tester_init_thread, (gpointer) my_tester2_get_type(), TRUE, NULL);
|
||||
/* execute threads */
|
||||
g_mutex_unlock (sync_mutex);
|
||||
while (g_atomic_int_get (&mtsafe_call_counter) < (3 + 3 + 3 * 3) * NUM_COUNTER_INCREMENTS)
|
||||
|
Reference in New Issue
Block a user