[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 13 18:49:37 PST 2017


EricWF added a comment.

In https://reviews.llvm.org/D28520#646160, @aaron.ballman wrote:

> I feel like I must be missing something; why is this disabling rather than specifying the thread safety behavior? e.g., `__libcpp_mutex_lock()` specifying that it acquires the capability and `__libcpp_mutex_unlock()` specifying that it releases it?


I agree. Also how is `pthread_mutex_t` getting annotated as a mutex type? Is it now done automatically?


https://reviews.llvm.org/D28520





More information about the cfe-commits mailing list