Add an Atomic.h to the System library, for providing a platform independent API
authorOwen Anderson <resistor@mac.com>
Thu, 14 May 2009 05:54:36 +0000 (05:54 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 14 May 2009 05:54:36 +0000 (05:54 +0000)
commitc082324e1940851f8db720d064d2b31915910d4e
tree939bb10dd02e7173abf2a7312ea5bc83b9f0bac9
parenta7c9deaa2b1df30808db376bdfcba7f2e54e59d1
Add an Atomic.h to the System library, for providing a platform independent API
to low-level sync operations.

The only one present at the moment is MemoryFence(), and only for the platforms
for which I could easily discern the proper way to do it.  If your favorite platform
isn't represented, patches are welcome!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71770 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/System/Atomic.h [new file with mode: 0644]