commit | 2e80d01fa7dc36c5f2533a363c6c0680f7896dc5 | [log] [tgz] |
---|---|---|
author | Marshall Clow <mclow.lists@gmail.com> | Wed Aug 14 20:54:56 2019 +0000 |
committer | Marshall Clow <mclow.lists@gmail.com> | Wed Aug 14 20:54:56 2019 +0000 |
tree | ad3e9bc3d415559af00cb828da139cc9b85234e9 | |
parent | 376f64225288df2565e06e92d53d71f54cebf8c2 [diff] [blame] |
Fix thread comparison by making sure we never pass our special 'not a thread' value to the underlying implementation. Fixes PR#42918. llvm-svn: 368916
diff --git a/libcxx/src/mutex.cpp b/libcxx/src/mutex.cpp index ddd36b4..1827857 100644 --- a/libcxx/src/mutex.cpp +++ b/libcxx/src/mutex.cpp
@@ -181,7 +181,7 @@ unique_lock<mutex> lk(__m_); if (--__count_ == 0) { - __id_.reset(); + __id_.__reset(); lk.unlock(); __cv_.notify_one(); }