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 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
-
43
32
namespace swift {
44
33
class AsyncTask ;
45
34
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
+
48
59
namespace swift {
49
60
class DefaultActor ;
50
61
class TaskOptionRecord ;
You can’t perform that action at this time.
0 commit comments