Alastair Houghton
47fa71787f
Revert "Merge pull request #80224 from glessard/revert-79789-custom-executors"
...
This reverts commit 06f6358067 , reversing
changes made to 033f6679e8 .
2025-03-28 10:15:07 +00:00
Alastair Houghton
8b15b05c63
Revert "[Concurrency] Provide a Swift interface for custom main and global executors."
2025-03-22 02:38:11 -07:00
Alastair Houghton
c20aa667f2
[Concurrency] Disable various things for task-to-thread model.
...
When in task-to-thread model concurrency mode, there is no `MainActor`
and we cannot use `ExecutorJob`, so disable various things.
rdar://141348916
2025-03-19 11:15:00 +00:00
Alastair Houghton
0da95eb20d
[Concurrency] Fix some warnings, use typed throws.
...
Fix a couple of `unsafe` warnings.
Also update `withUnsafeExecutorPrivateData` to use typed throws instead of
`rethrow`.
rdar://141348916
2025-03-18 18:37:31 +00:00
Alastair Houghton
fb0396c509
[Concurrency] Fall back to allocating from the heap, fix a test.
...
`CooperativeExecutor` should fall back to heap allocations if the task
allocator isn't available when it's enqueuing delayed jobs.
Also, remove the reference to `DispatchGlobalExecutor` from the
custom executor test.
rdar://141348916
2025-03-18 17:59:57 +00:00
Alastair Houghton
60fb31cf01
[Concurrency][32-bit] Store timestamp out-of-line on 32-bit.
...
CooperativeExecutor needs to store its timestamp out-of-line for
32-bit architectures (like WASI).
rdar://141348916
2025-03-18 15:46:51 +00:00
Alastair Houghton
ed08858998
[Concurrency] Fix availability.
...
Fix up availability after the non-Darwin changes. Also update the
ABI baseline.
Fix a Win32 typo.
rdar://141348916
2025-03-17 16:24:06 +00:00
Alastair Houghton
f0defd83bd
[Concurrency] Add CooperativeExecutor, use it.
...
Also tweak the sleep implementations to let the hooks run if there
isn't a `SchedulableExecutor` (for hooked mode).
rdar://141348916
2025-03-17 13:10:35 +00:00