[PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 30 03:01:02 PDT 2016


rmaprath added a subscriber: rmaprath.
rmaprath added a comment.

Small side question: so how are `__m_` and `__cv_` initialized in this setup? is it that `pthread_mutex_lock()` and the like would be able to handle an un-initialized blob of memory (in a thread-safe way)? Because I don't see a call to `pthread_mutex_init()` anywhere in the code-path.


http://reviews.llvm.org/D21637





More information about the cfe-commits mailing list