diff options
author | ed <ed@FreeBSD.org> | 2013-06-30 08:54:41 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2013-06-30 08:54:41 +0000 |
commit | 69fe417f6ed3f57da1fc0b75d1686f048fd4da8b (patch) | |
tree | 2dcf809506446c24d6ae3d6124407d961f74812a /lib | |
parent | c3008dddb18ab0a1f34c449782a98cec691a478a (diff) | |
download | FreeBSD-src-69fe417f6ed3f57da1fc0b75d1686f048fd4da8b.zip FreeBSD-src-69fe417f6ed3f57da1fc0b75d1686f048fd4da8b.tar.gz |
Make various fixes to <stdatomic.h>.
- According to the standard, memory_order is a type. Use a typedef.
- atomic_*_fence() and atomic_flag_*() are described by the standard as
functions. Use inline functions to implement them.
- Only expose the atomic_*_explicit() functions in kernel space. We
should not use the short-hand functions, as they will always use
memory_order_seq_cst.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions