Implement _dbus_atomic_get directly, rather than via inc + dec
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 28 Jul 2011 15:58:05 +0000 (16:58 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 29 Jul 2011 11:29:42 +0000 (12:29 +0100)
commit89906f3e3d79f074156e16a12b4030188fd7e368
tree6d34bccb30ddd92d625bb22e6f447bc06311b4b7
parent0614a49274b85384f798beb3440c875091224c5a
Implement _dbus_atomic_get directly, rather than via inc + dec

The Windows implementation is untested, but does at least (cross-)compile,
and matches what GLib does.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38005
Reviewed-by: Lennart Poettering <lennart@poettering.net>
dbus/dbus-sysdeps-unix.c
dbus/dbus-sysdeps-win.c
dbus/dbus-sysdeps.c