[ostree] daemon: Use g_thread_new() for GLib 2.32
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] daemon: Use g_thread_new() for GLib 2.32
- Date: Thu, 3 May 2012 20:08:18 +0000 (UTC)
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]