mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
Use non-deprecated api in tests
https://bugzilla.gnome.org/show_bug.cgi?id=660851
This commit is contained in:
parent
77695437b3
commit
e3eb137bbb
@ -143,7 +143,7 @@ test_rec_mutex4 (void)
|
||||
g_rec_mutex_init (&locks[i]);
|
||||
|
||||
for (i = 0; i < THREADS; i++)
|
||||
threads[i] = g_thread_create (thread_func, NULL, TRUE, NULL);
|
||||
threads[i] = g_thread_new ("test", thread_func, NULL);
|
||||
|
||||
for (i = 0; i < THREADS; i++)
|
||||
g_thread_join (threads[i]);
|
||||
@ -203,7 +203,7 @@ test_mutex_perf (gconstpointer data)
|
||||
depth = c % 256;
|
||||
|
||||
for (i = 0; i < n_threads - 1; i++)
|
||||
threads[i] = g_thread_create (addition_thread, &x, TRUE, NULL);
|
||||
threads[i] = g_thread_new ("test", addition_thread, &x);
|
||||
|
||||
/* avoid measuring thread setup/teardown time */
|
||||
start_time = g_get_monotonic_time ();
|
||||
|
@ -170,7 +170,7 @@ test_rwlock7 (void)
|
||||
g_rw_lock_init (&locks[i]);
|
||||
|
||||
for (i = 0; i < THREADS; i++)
|
||||
threads[i] = g_thread_create (thread_func, NULL, TRUE, NULL);
|
||||
threads[i] = g_thread_new ("test", thread_func, NULL);
|
||||
|
||||
for (i = 0; i < THREADS; i++)
|
||||
g_thread_join (threads[i]);
|
||||
@ -253,10 +253,10 @@ test_rwlock8 (void)
|
||||
g_rw_lock_init (&even_lock);
|
||||
|
||||
for (i = 0; i < 2; i++)
|
||||
writers[i] = g_thread_create (writer_func, GINT_TO_POINTER (i), TRUE, NULL);
|
||||
writers[i] = g_thread_new ("a", writer_func, GINT_TO_POINTER (i));
|
||||
|
||||
for (i = 0; i < 10; i++)
|
||||
readers[i] = g_thread_create (reader_func, NULL, TRUE, NULL);
|
||||
readers[i] = g_thread_new ("b", reader_func, NULL);
|
||||
|
||||
for (i = 0; i < 2; i++)
|
||||
g_thread_join (writers[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user