[librest/wip/teuf/fixes: 4/10] tests/threaded: Stop using g_thread_create



commit 21559e55283c8a1a21cf607c5121de4137243efc
Author: Timm Bäder <mail baedert org>
Date:   Sun Jul 17 12:06:26 2016 +0200

    tests/threaded: Stop using g_thread_create

 tests/threaded.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/threaded.c b/tests/threaded.c
index e3fed70..dfda9fd 100644
--- a/tests/threaded.c
+++ b/tests/threaded.c
@@ -88,10 +88,10 @@ main (int argc, char **argv)
   soup_server_add_handler (server, NULL, server_callback, NULL, NULL);
   url = g_strdup_printf ("http://127.0.0.1:%d/";, soup_server_get_port (server));
 
-  g_thread_create ((GThreadFunc)soup_server_run, server, FALSE, NULL);
+  g_thread_new ("server thread", (GThreadFunc)soup_server_run, server);
 
   for (i = 0; i < G_N_ELEMENTS (threads); i++) {
-    threads[i] = g_thread_create (func, url, TRUE, NULL);
+    threads[i] = g_thread_new ("client thread", func, url);
     if (verbose)
       g_print ("Starting thread %p\n", threads[i]);
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]