File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 29
29
#include " bitset"
30
30
#include " queue" // TODO: remove and replace with our own mpsc
31
31
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
+
32
43
namespace swift {
33
44
class AsyncTask ;
34
45
class AsyncContext ;
Original file line number Diff line number Diff line change 45
45
#define SWIFT_CONCURRENCY_ENABLE_DISPATCH 0
46
46
#endif
47
47
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
-
59
48
namespace swift {
60
49
class DefaultActor ;
61
50
class TaskOptionRecord ;
You can’t perform that action at this time.
0 commit comments