]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make various fixes to <stdatomic.h>.
authored <ed@FreeBSD.org>
Sun, 30 Jun 2013 08:54:41 +0000 (08:54 +0000)
committered <ed@FreeBSD.org>
Sun, 30 Jun 2013 08:54:41 +0000 (08:54 +0000)
commit69fe417f6ed3f57da1fc0b75d1686f048fd4da8b
tree2dcf809506446c24d6ae3d6124407d961f74812a
parentc3008dddb18ab0a1f34c449782a98cec691a478a
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.
sys/sys/stdatomic.h