[libcxx-commits] [PATCH] D65895: Fix a layering violation in mutex - prep for fixing PR42918

Marshall Clow via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 8 08:59:39 PDT 2019


mclow.lists marked an inline comment as done.
mclow.lists added inline comments.


================
Comment at: libcxx/src/mutex.cpp:184
     {
-        __id_ = 0;
+        __id_.reset();
         lk.unlock();
----------------
This change eliminates the "zero is special" knowledge from here, instead keeping it in `__thread_id`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65895/new/

https://reviews.llvm.org/D65895





More information about the libcxx-commits mailing list