File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 2929#include " bitset"
3030#include " queue" // TODO: remove and replace with our own mpsc
3131
32+ // Does the runtime provide priority escalation support?
33+ #ifndef SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION
34+ #if SWIFT_CONCURRENCY_ENABLE_DISPATCH && \
35+ __has_include (<dispatch/swift_concurrency_private.h>) && __APPLE__ && \
36+ (defined (__arm64__) || defined(__x86_64__))
37+ #define SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION 1
38+ #else
39+ #define SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION 0
40+ #endif
41+ #endif /* SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION */
42+
3243namespace swift {
3344class AsyncTask ;
3445class AsyncContext ;
Original file line number Diff line number Diff line change 4545#define SWIFT_CONCURRENCY_ENABLE_DISPATCH 0
4646#endif
4747
48- // Does the runtime provide priority escalation support?
49- #ifndef SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION
50- #if SWIFT_CONCURRENCY_ENABLE_DISPATCH && \
51- __has_include (<dispatch/swift_concurrency_private.h>) && __APPLE__ && \
52- (defined (__arm64__) || defined(__x86_64__))
53- #define SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION 1
54- #else
55- #define SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION 0
56- #endif
57- #endif /* SWIFT_CONCURRENCY_ENABLE_PRIORITY_ESCALATION */
58-
5948namespace swift {
6049class DefaultActor ;
6150class TaskOptionRecord ;
You can’t perform that action at this time.
0 commit comments