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.