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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to