Commit Graph

7 Commits

Author SHA1 Message Date
Konrad `ktoso` Malawski
80913591cd Adjust availability checks in DispatchShims.h (#85634) 2025-11-20 21:23:21 -08:00
Bryce Wilson
5f83c54f8c [Concurrency] Set thread base priority when running escalated Tasks 2025-11-20 11:15:22 +09:00
Bryce Wilson
b30f63530a [Concurrency] Set thread base priority when running escalated Tasks (#84895) 2025-11-20 09:58:08 +09:00
Allan Shortlidge
64f0a8a66f Runtime: Fix -Wmissing-field-initializers warnings in DispatchShims.h. 2024-08-21 10:05:27 -07:00
Kuba (Brecka) Mracek
e9d1d3096a Stop using SWIFT_STDLIB_SINGLE_THREADED_CONCURRENCY under SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY (#62735)
Using single-threaded concurrency was a temporary solution, now that the task-to-thread model actually supports multiple threads, let's switch off of it. Instead, let's introduce a "global executor none" option (implicitly set under the task-to-thread model) to denote that the concurrency model is not using a global executor.

rdar://99448771
2023-01-03 15:24:57 -08:00
Doug Gregor
7785bf438b Make sure functions defined in a header are inline.
Fixes rdar://89976658.
2022-03-18 15:30:25 -07:00
Rokhini Prabhu
66d4af0b01 Task priority escalation on Apple platforms
A task can be in one of 4 states over its lifetime:

    (a) suspended
    (b) enqueued
    (c) running
    (d) completed

This change provides priority inversion avoidance support if a task gets
escalated when it is in state (a), (c), (d).

Radar-Id: rdar://problem/76127624
2022-02-07 16:34:46 -08:00