GNOME Bugzilla – Bug 773262
gresolver: Make get_default() thread-safe
Last modified: 2016-10-20 14:51:59 UTC
See commit message
Created attachment 338082 [details] [review] GResolver – Make get_default() thread-safe
Review of attachment 338082 [details] [review]: ::: gio/gresolver.c @@ +205,3 @@ + GResolver *ret; + + G_LOCK (default_resolver); Don't we more commonly use g_once_init_enter()?
It's possible to set a different default resolver at any time, it's not a one-time thing
How much sense that makes, I don't know... but that's what the code allows and intents to allow apparently. See the unref in the setter
Review of attachment 338082 [details] [review]: OK, yep, makes sense to me.
commit 2a970e33a474960bfd1204797caf41996267f20c Author: Sebastian Dröge <sebastian@centricular.com> Date: Thu Oct 20 12:16:18 2016 +0300 gresolver: Make get_default() thread-safe https://bugzilla.gnome.org/show_bug.cgi?id=773262