GSettingsBackend: make signal dispatch threadsafe
authorRyan Lortie <desrt@desrt.ca>
Sun, 16 May 2010 18:17:34 +0000 (14:17 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 17 May 2010 11:16:37 +0000 (07:16 -0400)
commit61219e264083184eada5c5ef2795b7c531470704
tree7ffb2e0d66abc0ac33f55058d400c326eeaf6fc0
parent4967b6d2ab5a0a83609a825ea113bc75f61bfdb1
GSettingsBackend: make signal dispatch threadsafe

This commit fixes up a few race conditions in the GSettingsBackend, mostly with
respect to change notifications occuring at the same time as the last reference
count on a GSettings is dropped.  With GDBus feeding us our incoming signals in
a separate thread, this is something that could easily happen.
gio/gdelayedsettingsbackend.c
gio/gsettings.c
gio/gsettingsbackend.c
gio/gsettingsbackendinternal.h