File tree 2 files changed +34
-0
lines changed
stdlib/public/Concurrency
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ // ===--- Debug.h - Swift Concurrency debug helpers --------------*- C++ -*-===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
6
+ // Licensed under Apache License v2.0 with Runtime Library Exception
7
+ //
8
+ // See https://swift.org/LICENSE.txt for license information
9
+ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
+ //
11
+ // ===----------------------------------------------------------------------===//
12
+ //
13
+ // Debugging and inspection support.
14
+ //
15
+ // ===----------------------------------------------------------------------===//
16
+
17
+ #ifndef SWIFT_CONCURRENCY_DEBUG_H
18
+ #define SWIFT_CONCURRENCY_DEBUG_H
19
+
20
+ #include " swift/Runtime/Config.h"
21
+
22
+ namespace swift {
23
+
24
+ // / The metadata pointer used for async task objects.
25
+ SWIFT_RUNTIME_STDLIB_SPI
26
+ const void *const _swift_concurrency_debug_asyncTaskMetadata;
27
+
28
+ } // namespace swift
29
+
30
+ #endif
Original file line number Diff line number Diff line change 21
21
#include " swift/Runtime/HeapObject.h"
22
22
#include " TaskPrivate.h"
23
23
#include " AsyncCall.h"
24
+ #include " Debug.h"
24
25
25
26
#include < dispatch/dispatch.h>
26
27
@@ -168,6 +169,9 @@ static FullMetadata<HeapMetadata> taskHeapMetadata = {
168
169
}
169
170
};
170
171
172
+ const void *const swift::_swift_concurrency_debug_asyncTaskMetadata =
173
+ static_cast <Metadata *>(&taskHeapMetadata);
174
+
171
175
// / The function that we put in the context of a simple task
172
176
// / to handle the final return.
173
177
SWIFT_CC (swift)
You can’t perform that action at this time.
0 commit comments