mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
85c02df04e
commit
5a2a7f7db1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user