[glib: 10/16] tests: Fix use of deprecated threading API in performance-threaded
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 10/16] tests: Fix use of deprecated threading API in performance-threaded
- Date: Wed, 22 Jun 2022 18:49:08 +0000 (UTC)
commit 6747702d776535ed1f2aa3ace5e27a5a5ab567de
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Jun 14 15:27:43 2022 +0100
tests: Fix use of deprecated threading API in performance-threaded
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gobject/tests/performance/performance-threaded.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/tests/performance/performance-threaded.c
b/gobject/tests/performance/performance-threaded.c
index 97aa4384b9..7e6ebc5eb3 100644
--- a/gobject/tests/performance/performance-threaded.c
+++ b/gobject/tests/performance/performance-threaded.c
@@ -301,7 +301,7 @@ run_test (const PerformanceTest *test)
threads = g_new (GThread *, n_threads);
for (i = 0; i < n_threads; i++) {
- threads[i] = g_thread_create (run_test_thread, (gpointer) test, TRUE, NULL);
+ threads[i] = g_thread_new (NULL, run_test_thread, (gpointer) test);
g_assert (threads[i] != NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]