shared_mutex was introduced in C++17 but its implementation currently
doesn't use Clang's thread annotations like regular mutex. This change
adds those.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
libcxx/include/shared_mutex | ||
---|---|---|
164 ↗ | (On Diff #173265) | Just making sure; those are only needed on the declarations? |
libcxx/include/shared_mutex | ||
---|---|---|
164 ↗ | (On Diff #173265) | Yes |
Comment Actions
Shouldn't the attributes be on shared_mutex and shared_timed_mutex, respectively, instead of the internal __shared_mutex_base? Note that the analysis is strictly intraprocedural and doesn't do "inlining".