[glib: 8/11] tests: Port closure-refcount from g_thread_create() to g_thread_new()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 8/11] tests: Port closure-refcount from g_thread_create() to g_thread_new()
- Date: Wed, 27 Feb 2019 16:48:51 +0000 (UTC)
commit 5a2a7f7db1f08b35650b7b3b7203d71de5b8e286
Author: Philip Withnall <withnall endlessm com>
Date: Wed Feb 27 11:58:44 2019 +0000
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>
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]