daemon: Use g_thread_new() for GLib 2.32

This commit is contained in:
Colin Walters committed 2012-05-03 16:07:18 -04:00
1 parent ff3867c052
commit 99cb8a80fa
1 file changed
+4
+4
View File
@@ -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