[PATCH] [libcxx] Windows port of thread/mutex/chrono

Nico Rieck nico.rieck at gmail.com
Thu Oct 10 06:38:18 PDT 2013


This series of patches port threads including synchronization and 
<chrono> to Windows.

The implementation deliberately avoids including Windows.h in any libc++ 
header. There are still incompatibilities if a Windows SDK header is 
included before a libc++ header because older Microsoft SAL annotations 
define macros for __null, __out and __deallocate. Maybe the best way to 
fix this would be to use #pragma push_macro/pop_macro around all libc++ 
headers.

All pthreads-related code is guarded by _LIBCPP_PTHREADS which is 
defined by default (except for non-mingw Win32).

-Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-Windows-system-libraries-to-linker-input.patch
Type: text/x-patch
Size: 1014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131010/fd46b548/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Port-mutex-to-Windows.patch
Type: text/x-patch
Size: 36758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131010/fd46b548/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Port-condition_variable-to-Windows.patch
Type: text/x-patch
Size: 3813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131010/fd46b548/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Port-thread-to-Windows.patch
Type: text/x-patch
Size: 12803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131010/fd46b548/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Port-chrono-to-Windows.patch
Type: text/x-patch
Size: 2761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131010/fd46b548/attachment-0004.bin>


More information about the cfe-commits mailing list