atomic: implement atomic operations based on gcc's __sync extension
authorLennart Poettering <lennart@poettering.net>
Tue, 19 May 2009 20:30:14 +0000 (22:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 May 2009 00:09:32 +0000 (02:09 +0200)
commit9293e823767daee79386cc797510808f4eed01a3
treeb1f482f0cdf51c1ef2d78931665db6a7175502a8
parent74bff5af804817372aece931c792b53c8ec534e1
atomic: implement atomic operations based on gcc's __sync extension

Newer gccs and intel ccs support a __sync extension for making use of
atomic operations. This patch replaces the handcrafted x86 atomic
operation support with usage of __sync.

__sync is supported by more processors and by more compilers than the
old assembler code. Also, this extension has been available on gcc for
quite a while now for x86, so replacing the old assembler code should
only be a loss when very old compiilers are used.
configure.in
dbus/dbus-internals.h
dbus/dbus-sysdeps-unix.c
dbus/dbus-threads.c