mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
daemon: Use g_thread_new() for GLib 2.32
This commit is contained in:
parent
ff3867c052
commit
99cb8a80fa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user