GDBusWorker: as a precaution, access 'stopped' boolean atomically
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 12 Sep 2011 17:26:45 +0000 (18:26 +0100)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 16 Sep 2011 16:00:22 +0000 (12:00 -0400)
commit698eeb3ef6992d551b310bba474d8a38c22ea9b7
tree99373a080ea6deed9ab88863b138b608894a81ce
parent20497f7af908697f958e43c06e38eca256bb58bf
GDBusWorker: as a precaution, access 'stopped' boolean atomically

This member is written in _g_dbus_worker_stop from arbitrary threads, and
read by the worker thread, so it should be accessed atomically.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=651268
Bug-NB: NB#271520
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusprivate.c