mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
tests: Port GObject tests from g_thread_create() to g_thread_new()
To avoid warnings about deprecated functions. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1434
This commit is contained in:
@@ -129,10 +129,10 @@ test_refcount_object_basics (void)
|
||||
for (i = 0; i < n_threads; i++) {
|
||||
GThread *thread;
|
||||
|
||||
thread = g_thread_create ((GThreadFunc) run_thread, test1, TRUE, NULL);
|
||||
thread = g_thread_new (NULL, (GThreadFunc) run_thread, test1);
|
||||
g_array_append_val (test_threads, thread);
|
||||
|
||||
thread = g_thread_create ((GThreadFunc) run_thread, test2, TRUE, NULL);
|
||||
thread = g_thread_new (NULL, (GThreadFunc) run_thread, test2);
|
||||
g_array_append_val (test_threads, thread);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user