Re: Thread safety of ostree_repo_pull_with_options
- From: Colin Walters <walters verbum org>
- To: ostree-list gnome org
- Subject: Re: Thread safety of ostree_repo_pull_with_options
- Date: Thu, 15 Jun 2017 14:38:36 -0400
On Thu, Jun 15, 2017, at 10:09 AM, Anton Gerasimov wrote:
To those who may be interested: creating and setting default
GMainContext for every thread (g_main_context_new();
g_main_context_push_default_thread()) solves the problem.
Yeah, sorry I meant to reply with that earlier. Anaconda hit
an issue with this too...see:
https://bugzilla.redhat.com/show_bug.cgi?id=1148975
Basically ostree_repo_pull() is unusual in that it iterates
the caller's main context, and if you don't create a new one,
you'll have multiple threads running a single context.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]