librfn/atomic: Temporary macros for atomic variables.
authorDaniel Thompson <daniel@redfelineninja.org.uk>
Sat, 12 Jan 2013 16:39:57 +0000 (16:39 +0000)
committerDaniel Thompson <daniel@redfelineninja.org.uk>
Sat, 12 Jan 2013 16:39:57 +0000 (16:39 +0000)
commit65fabf7e7d5054874f69dbe4e1d0bcb9eb3dc59a
tree97f8ab3caf603f689600ac317f425bd9fb9fe1df
parent6eba21176547df2654c9dbfe29ae90793d769129
librfn/atomic: Temporary macros for atomic variables.

These use the atomics support available in gcc-4.7 (and for which there
is no libgcc support for) to provide an interface very similar to C11.
This allows this header can be replaced by stdatomic.h once gcc-4.8
(and other C11 conforming compilers) is released.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
src/librfn/include/librfn/atomic.h [new file with mode: 0644]