After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 620641 - gsettings construction is sync
gsettings construction is sync
Status: RESOLVED DUPLICATE of bug 597835
Product: glib
Classification: Platform
Component: gsettings
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Allison Karlitskaya (desrt)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-06-05 10:56 UTC by Christian Persch
Modified: 2010-06-07 13:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2010-06-05 10:56:15 UTC
As I found out yesterday on IRC, g_settings_new() may block:

Jun 03 18:48:06 desrt   g_setings_new() blocks
Jun 03 18:48:39 desrt   am thinking of adding g_settings_new_async

This means there should be a g_settings_new_async() + _finish() so one can construct it asynchronously. 

Also, g_settings_new should perhaps be renamed to g_settings_new_sync() to make this clear, and it definitely should be documented that this call may block.
Comment 1 Christian Persch 2010-06-05 11:31:52 UTC
Also: g_settings_get_child calls g_settings_new(), so it too needs async + finish variant, and maybe a rename to _get_child_sync().
Comment 2 Allison Karlitskaya (desrt) 2010-06-07 13:33:51 UTC

*** This bug has been marked as a duplicate of bug 597835 ***