mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
tests: Fix use of deprecated threading API in performance-threaded
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -301,7 +301,7 @@ run_test (const PerformanceTest *test)
|
||||
|
||||
threads = g_new (GThread *, n_threads);
|
||||
for (i = 0; i < n_threads; i++) {
|
||||
threads[i] = g_thread_create (run_test_thread, (gpointer) test, TRUE, NULL);
|
||||
threads[i] = g_thread_new (NULL, run_test_thread, (gpointer) test);
|
||||
g_assert (threads[i] != NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user