[LLVMdev] RFC: LLVM should require a working C++11 <thread>, <mutex>, and <atomic>

David Chisnall David.Chisnall at cl.cam.ac.uk
Wed Sep 24 08:00:00 PDT 2014


On 24 Sep 2014, at 05:59, Mueller-Roemer, Johannes Sebastian <Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de> wrote:

> <atomic> should work both in win32 and pthread versions of MinGW. <mutex> and <thread> are only supported in the pthread version though.

<atomic> is trivial, as most of the support is provided by the compiler.  As of Vista, Windows comes with some quite sane primitives for implementing <mutex> and <thread>, so it would only be 1-2 days of work for someone to write the implementation for libc++.

I'd suggest that the total effort that has gone into this thread so far is close to the amount of effort required to add the missing support...

David





More information about the llvm-dev mailing list