1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-07-19 00:17:51 +02:00

Merge branch 'mutex-tests-more' into 'main'

glib/tests/[rec-]mutex: Allow each thread to work

See merge request 
This commit is contained in:
Philip Withnall
2023-04-24 10:25:05 +00:00
2 changed files with 2 additions and 2 deletions

@@ -195,7 +195,7 @@ test_mutex_perf (gconstpointer data)
gint x = -1;
guint i;
count_to = g_test_perf () ? 100000000 : 1;
count_to = g_test_perf () ? 100000000 : n_threads + 1;
g_assert (n_threads <= G_N_ELEMENTS (threads));

@@ -204,7 +204,7 @@ test_mutex_perf (gconstpointer data)
n_threads = c / 256;
depth = c % 256;
count_to = g_test_perf () ? 100000000 : 1;
count_to = g_test_perf () ? 100000000 : n_threads + 1;
for (i = 0; i < n_threads - 1; i++)
threads[i] = g_thread_new ("test", addition_thread, &x);