From 5a2a7f7db1f08b35650b7b3b7203d71de5b8e286 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 27 Feb 2019 11:58:44 +0000 Subject: [PATCH] tests: Port closure-refcount from g_thread_create() to g_thread_new() g_thread_create() has been deprecated for a long time. Signed-off-by: Philip Withnall --- gobject/tests/closure-refcount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gobject/tests/closure-refcount.c b/gobject/tests/closure-refcount.c index fb0b92a06..77300e9ad 100644 --- a/gobject/tests/closure-refcount.c +++ b/gobject/tests/closure-refcount.c @@ -257,8 +257,8 @@ test_closure_refcount (void) stopping = FALSE; - thread1 = g_thread_create (thread1_main, closure, TRUE, NULL); - thread2 = g_thread_create (thread2_main, closure, TRUE, NULL); + thread1 = g_thread_new ("thread1", thread1_main, closure); + thread2 = g_thread_new ("thread2", thread2_main, closure); /* The 16-bit compare-and-swap operations currently used for closure * refcounts are really slow on some ARM CPUs, notably Cortex-A57.