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 <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-02-27 11:58:44 +00:00
parent 85c02df04e
commit 5a2a7f7db1

View File

@ -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.