tests: Fix use of deprecated threading API in performance-threaded

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-06-14 15:27:43 +01:00
parent 6b8240f061
commit 6747702d77

View File

@ -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);
}