improve thread safety in GDelayedSettingsBackend
authorRyan Lortie <desrt@desrt.ca>
Sun, 16 May 2010 20:56:36 +0000 (16:56 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 17 May 2010 11:16:37 +0000 (07:16 -0400)
commit799e0242ae31dd66b102342927583f1f34806c54
tree974f9d254f21243311ba98cbb1a76b52a68e53e6
parent61219e264083184eada5c5ef2795b7c531470704
improve thread safety in GDelayedSettingsBackend

  - hold a lock while accessing the tree of delayed values
  - use weak reference counts with the owner object to avoid doing
    g_object_notify on a dead object
  - dispatch the "has-unapplied" notify to the proper main context
gio/gdelayedsettingsbackend.c
gio/gdelayedsettingsbackend.h
gio/gsettings.c
gio/gsettingsbackend.c
gio/gsettingsbackendinternal.h