[ostree] daemon: Use g_thread_new() for GLib 2.32



commit 99cb8a80fac934e09028984ea6a472e35d16e9a4
Author: Colin Walters <walters verbum org>
Date:   Thu May 3 16:07:18 2012 -0400

    daemon: Use g_thread_new() for GLib 2.32

 src/daemon/ot-daemon.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/daemon/ot-daemon.c b/src/daemon/ot-daemon.c
index b688fed..465b2fd 100644
--- a/src/daemon/ot-daemon.c
+++ b/src/daemon/ot-daemon.c
@@ -183,8 +183,12 @@ do_op_overlay (OstreeDaemon            *self,
   tdata->op = op;
   tdata->dir = ot_gfile_new_for_path (dir);
 
+#if GLIB_CHECK_VERSION(2,32,0)  
+  g_thread_new ("overlay-dir-thread", overlay_dir_thread, tdata);
+#else
   g_thread_create_full (overlay_dir_thread, tdata, 0, FALSE, FALSE,
                         G_THREAD_PRIORITY_NORMAL, NULL);
+#endif
 }
 
 static void



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