File tree Expand file tree Collapse file tree 7 files changed +10
-13
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 7 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 17
17
#ifndef SWIFT_ABI_TASK_H
18
18
#define SWIFT_ABI_TASK_H
19
19
20
- #include " swift/Basic/RelativePointer .h"
20
+ #include " swift/ABI/TaskGroup .h"
21
21
#include " swift/ABI/Executor.h"
22
22
#include " swift/ABI/HeapObject.h"
23
- #include " swift/ABI/TaskGroup.h"
24
23
#include " swift/ABI/Metadata.h"
25
24
#include " swift/ABI/MetadataValues.h"
26
25
#include " swift/Runtime/Config.h"
@@ -158,7 +157,6 @@ class ActiveTaskStatus {
158
157
// / * The future fragment is dynamic in size, based on the future result type
159
158
// / it can hold, and thus must be the *last* fragment.
160
159
class AsyncTask : public HeapObject , public Job {
161
- friend TaskGroup;
162
160
public:
163
161
// / The context for resuming the job. When a task is scheduled
164
162
// / as a job, the next continuation should be installed as the
Original file line number Diff line number Diff line change 17
17
#ifndef SWIFT_ABI_TASK_GROUP_H
18
18
#define SWIFT_ABI_TASK_GROUP_H
19
19
20
+ #include " swift/Runtime/Concurrency.h"
21
+ #include " swift/ABI/Task.h"
20
22
#include " swift/Basic/RelativePointer.h"
21
- #include " swift/ABI/Executor.h"
22
23
#include " swift/ABI/HeapObject.h"
23
- #include " swift/ABI/Metadata.h"
24
- #include " swift/ABI/TaskStatus.h"
25
- #include " swift/ABI/MetadataValues.h"
26
24
#include " swift/Runtime/Config.h"
27
25
#include " swift/Basic/STLExtras.h"
28
- #include " Task.h"
29
26
#include " bitset"
30
27
#include " string"
31
28
#include " queue" // TODO: remove and replace with usage of our mpsc queue
32
29
#include < atomic>
33
30
#include < assert.h>
34
31
35
32
namespace swift {
33
+ class TaskGroupTaskStatusRecord ;
34
+ class AsyncTask ;
36
35
37
36
// ==== TaskGroup ------------------------------------------------------------
38
37
Original file line number Diff line number Diff line change 17
17
#ifndef SWIFT_RUNTIME_CONCURRENCY_H
18
18
#define SWIFT_RUNTIME_CONCURRENCY_H
19
19
20
- #include " swift/ABI/TaskStatus.h"
21
20
#include " swift/ABI/TaskGroup.h"
21
+ #include " swift/ABI/TaskStatus.h"
22
22
23
23
namespace swift {
24
24
class DefaultActor ;
Original file line number Diff line number Diff line change 21
21
#include " swift/Runtime/Casting.h"
22
22
#include " swift/Runtime/Mutex.h"
23
23
#include " swift/Runtime/ThreadLocal.h"
24
+ #include " swift/ABI/Task.h"
24
25
#include " swift/ABI/Actor.h"
25
26
#include " llvm/ADT/PointerIntPair.h"
26
27
#include " TaskPrivate.h"
Original file line number Diff line number Diff line change 17
17
//
18
18
// ===----------------------------------------------------------------------===//
19
19
20
- #include " TaskPrivate.h"
21
20
#include " swift/Runtime/Concurrency.h"
21
+ #include " swift/ABI/Task.h"
22
+ #include " TaskPrivate.h"
22
23
#include " ../runtime/StackAllocator.h"
23
24
#include < stdlib.h>
24
25
Original file line number Diff line number Diff line change 21
21
#include " swift/Runtime/Mutex.h"
22
22
#include " swift/Runtime/HeapObject.h"
23
23
#include " TaskPrivate.h"
24
- #include " TaskPrivate.h"
25
24
#include " AsyncCall.h"
26
25
#include " Debug.h"
27
26
32
31
#endif
33
32
34
33
using namespace swift ;
35
- using TaskGroup = swift::TaskGroup;
36
34
using FutureFragment = AsyncTask::FutureFragment;
37
35
38
36
using ReadyQueueItem = TaskGroup::ReadyQueueItem;
@@ -394,3 +392,4 @@ bool TaskGroup::cancelAll(AsyncTask *task) {
394
392
bool swift::swift_task_group_add_pending (TaskGroup *group) {
395
393
return !group->statusAddPendingTaskRelaxed ().isCancelled ();
396
394
}
395
+
Original file line number Diff line number Diff line change 19
19
20
20
#include " swift/Runtime/Concurrency.h"
21
21
#include " swift/ABI/Task.h"
22
- #include " swift/ABI/TaskGroup.h"
23
22
#include " swift/ABI/Metadata.h"
24
23
#include " swift/Runtime/HeapObject.h"
25
24
#include " swift/Runtime/Error.h"
You can’t perform that action at this time.
0 commit comments