[PATCH] D41498: [libcxx] Add clang negative thread safety assertions to std::mutex

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 21 11:17:32 PST 2017

mclow.lists added inline comments.

Comment at: include/__mutex_base:65
     void unlock() _NOEXCEPT _LIBCPP_THREAD_SAFETY_ANNOTATION(release_capability());
+    const mutex& operator!() const { return *this; }
We don't get to add public member functions to classes defined in the standard - at least not ones with pronounceable names.

  rCXX libc++


More information about the cfe-commits mailing list