Commit Graph

57 Commits

Author SHA1 Message Date
Alastair Houghton
709d06fecd [Threading][Windows] Undefine Yield and ERROR.
`windows.h` defines a couple of very unhelpfully named macros.
Undefine them after including it.

rdar://90776105
2022-05-24 14:57:40 +01:00
Alastair Houghton
4527c08f8f [Threading][Windows] More header file fixes.
rdar://90776105
2022-05-24 14:57:40 +01:00
Alastair Houghton
6f4d9cca41 [Threading][Windows] Fix another Windows niggle.
Looks like I forgot to update the Win32.h implementation.

rdar://90776105
2022-05-24 14:57:40 +01:00
Alastair Houghton
f04b6580fb [Threading][Windows] Fix missing close brace.
Apparently I missed a close brace from the end of Win32.h.

rdar://90776105
2022-05-24 14:57:40 +01:00
Alastair Houghton
fc90280e34 [Threading] Fix the Linux build.
A few fixes specifically for the Linux build.

rdar://90776105
2022-05-24 14:57:39 +01:00
Alastair Houghton
2398fe76f6 [Threading] A couple of header file fixes.
Some declarations were missing from non-Darwin sources, and the Linux
header was slightly broken.

rdar://90776105
2022-05-24 14:57:39 +01:00
Alastair Houghton
63a09007a1 [Threading] Create new threading library and use it.
Moved all the threading code to one place.  Added explicit support for
Darwin, Linux, Pthreads, C11 threads and Win32 threads, including new
implementations of Once for Linux, Pthreads, C11 and Win32.

rdar://90776105
2022-05-24 14:57:39 +01:00