[cfe-dev] [libc++] Porting libc++ to Windows
Kim Gräsman
kim.grasman at gmail.com
Thu Jul 2 02:33:13 PDT 2015
On Thu, Jul 2, 2015 at 10:38 AM, David Chisnall
<David.Chisnall at cl.cam.ac.uk> wrote:
> On 2 Jul 2015, at 08:59, Fulvio Esposito <fulvio.esposito at live.it> wrote:
>>
>> - Your pthread implementation uses functions requiring Windows Vista or later, is WinXP not a target?
>> Also, I had to manually set _WIN32_WINNT to 0x600 in __config because mingw-w64 defaults to 0x503 or something like that.
>
> You’re likely to see a lot of overhead on Windows if you don’t use the Vista (actually, I think, Windows Server 2003,
> though I could be wrong) stuff for synchronisation - the older mutexes are global kernel objects with no adaptive mutex
> fast path for the uncontended case.
Windows also has a light-weight mutex concept they call critical
sections, it's been around since forever. That's what std::mutex
should map to, not the Windows Mutex.
- Kim
More information about the cfe-dev
mailing list