Re: Thread safety of ostree_repo_pull_with_options





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]