[PATCH] D20328: [libcxx] Externally threaded libc++ variant

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 7 09:51:33 PDT 2016


rmaprath added a comment.

In http://reviews.llvm.org/D20328#451210, @STL_MSFT wrote:

> [Asiri Rathnayake]
>
> > The `constexpr` mutex constructor is apparently also a
>
> >  pain point on windows [1], I'm sure @STL_MSFT knows more about it.
>
>
> That's because of MSVC-specific issues, where we need to dynamically switch between WinAPI and ConcRT implementations depending on whether the end user's machine is Win7+/Vista/XP. If we could assume Win7+, we wouldn't need this squirrelly machinery.
>
> STL


Thanks. I was thinking may be it's because you also need to call some dynamic initialization routine from within the `std::mutex` constructor (like, to initialize a kernel provided mutex). Good to know that this isn't the case.

Cheers,

/ Asiri


http://reviews.llvm.org/D20328





More information about the cfe-commits mailing list