]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r239960:
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 18 Aug 2013 08:18:49 +0000 (08:18 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 18 Aug 2013 08:18:49 +0000 (08:18 +0000)
commit56379335b7fa12a5d81961119f28b324d6470876
treea730837755b688726463bd955d6cd6e1fb54db62
parent01d205c79020416c4d03601f67f8013ee13cf8a5
MFC r239960:

  Properly enable Clang-style atomics when available.

  In addition to testing against cxx_atomic, we must check c_atomic. The
  former is only set when building C++ code. Also use __has_extension
  instead of __has_feature. This allows us to use the atomics outside of
  C11.

PR: threads/170073

git-svn-id: svn://svn.freebsd.org/base/stable/9@254477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
include/stdatomic.h