[PATCH] D17951: Implement is_always_lock_free

JF Bastien via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 16 13:38:35 PDT 2016


jfb added inline comments.

================
Comment at: include/atomic:900
@@ +899,3 @@
+# if defined(_LIBCPP_LOCK_FREE_IS_SIZE_BASED)
+  static _LIBCPP_CONSTEXPR bool is_always_lock_free = __libcpp_always_lock_free<sizeof(_Tp)>;
+# else
----------------
Actually, this should be based on `sizeof(__a_)` and *not* `sizeof(_Tp)`.


http://reviews.llvm.org/D17951





More information about the cfe-commits mailing list