[libcxx-commits] [clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)
Aaron Puchert via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Sep 7 13:44:11 PDT 2025
https://github.com/aaronpuchert requested changes to this pull request.
It looks like there is some confusion around the concepts here: `unique_lock` is not a `lockable` but a [`scoped_lockable`](https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#scoped-capability). The latter should be automatically released if you annotate the destructor. The former should in my view be manually released before they're destroyed. I'll comment on the original issue.
https://github.com/llvm/llvm-project/pull/157171
More information about the libcxx-commits
mailing list