Alastair Houghton
6962758c8c
[Threading] Add the ability to use any C++ callable in swift::once().
...
This allows the use of C++ lambdas and functors, in addition to plain
old functions.
rdar://90776105
2022-06-07 07:39:53 +01:00
Alastair Houghton
0e9318cec5
[Threading] Put everything through git clang-format.
...
Just formatting changes.
rdar://90776105
2022-06-07 07:39:53 +01:00
Alastair Houghton
6d1b6dbd1c
[Threading] Fix the Linux build.
...
A few fixes specifically for the Linux build.
rdar://90776105
2022-06-07 07:39:52 +01:00
Alastair Houghton
f5bdb858e0
[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-06-07 07:39:51 +01:00
Alex Hoppen
4aa2bbbf06
Revert "Merge pull request #42447 from al45tair/eng/PR-90776105"
...
This reverts commit 8bcb71140f , reversing
changes made to c4dd271d36 .
2022-06-02 18:03:23 +02:00
Alastair Houghton
901ceaef13
[Threading] Add the ability to use any C++ callable in swift::once().
...
This allows the use of C++ lambdas and functors, in addition to plain
old functions.
rdar://90776105
2022-05-24 14:57:42 +01:00
Alastair Houghton
b5bd267ff1
[Threading] Put everything through git clang-format.
...
Just formatting changes.
rdar://90776105
2022-05-24 14:57:41 +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
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