17
17
#ifndef SWIFT_RUNTIME_CONCURRENCY_H
18
18
#define SWIFT_RUNTIME_CONCURRENCY_H
19
19
20
+ #include " swift/ABI/AsyncLet.h"
20
21
#include " swift/ABI/Task.h"
21
22
#include " swift/ABI/TaskGroup.h"
22
- #include " swift/ABI/AsyncLet.h"
23
23
#include " swift/ABI/TaskStatus.h"
24
24
25
25
#pragma clang diagnostic push
@@ -466,40 +466,6 @@ void swift_asyncLet_consume_throwing(SWIFT_ASYNC_CONTEXT AsyncContext *,
466
466
SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
467
467
bool swift_taskGroup_hasTaskGroupRecord ();
468
468
469
- // / Add a status record to a task. The record should not be
470
- // / modified while it is registered with a task.
471
- // /
472
- // / This must be called synchronously with the task.
473
- // /
474
- // / If the task is already cancelled, returns `false` but still adds
475
- // / the status record.
476
- SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
477
- bool swift_task_addStatusRecord (TaskStatusRecord *record);
478
-
479
- // / Add a status record to a task if the task has not already
480
- // / been cancelled. The record should not be modified while it is
481
- // / registered with a task.
482
- // /
483
- // / This must be called synchronously with the task.
484
- // /
485
- // / If the task is already cancelled, returns `false` and does not
486
- // / add the status record.
487
- SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
488
- bool swift_task_tryAddStatusRecord (TaskStatusRecord *record);
489
-
490
- // / Remove a status record from a task. After this call returns,
491
- // / the record's memory can be freely modified or deallocated.
492
- // /
493
- // / This must be called synchronously with the task. The record must
494
- // / be registered with the task or else this may crash.
495
- // /
496
- // / The given record need not be the last record added to
497
- // / the task, but the operation may be less efficient if not.
498
- // /
499
- // / Returns false if the task has been cancelled.
500
- SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
501
- bool swift_task_removeStatusRecord (TaskStatusRecord *record);
502
-
503
469
// / Signifies whether the current task is in the middle of executing the
504
470
// / operation block of a `with(Throwing)TaskGroup(...) { <operation> }`.
505
471
// /
@@ -509,18 +475,6 @@ bool swift_task_removeStatusRecord(TaskStatusRecord *record);
509
475
SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
510
476
bool swift_task_hasTaskGroupStatusRecord ();
511
477
512
- // / Attach a child task to its parent task and return the newly created
513
- // / `ChildTaskStatusRecord`.
514
- // /
515
- // / The record must be removed with by the parent invoking
516
- // / `swift_task_detachChild` when the child has completed.
517
- SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
518
- ChildTaskStatusRecord* swift_task_attachChild (AsyncTask *child);
519
-
520
- // / Remove a child task from the parent tracking it.
521
- SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
522
- void swift_task_detachChild (ChildTaskStatusRecord *record);
523
-
524
478
SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
525
479
size_t swift_task_getJobFlags (AsyncTask* task);
526
480
0 commit comments