1717#ifndef SWIFT_RUNTIME_CONCURRENCY_H
1818#define SWIFT_RUNTIME_CONCURRENCY_H
1919
20+ #include " swift/ABI/AsyncLet.h"
2021#include " swift/ABI/Task.h"
2122#include " swift/ABI/TaskGroup.h"
22- #include " swift/ABI/AsyncLet.h"
2323#include " swift/ABI/TaskStatus.h"
2424
2525#pragma clang diagnostic push
@@ -466,40 +466,6 @@ void swift_asyncLet_consume_throwing(SWIFT_ASYNC_CONTEXT AsyncContext *,
466466SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
467467bool swift_taskGroup_hasTaskGroupRecord ();
468468
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-
503469// / Signifies whether the current task is in the middle of executing the
504470// / operation block of a `with(Throwing)TaskGroup(...) { <operation> }`.
505471// /
@@ -509,18 +475,6 @@ bool swift_task_removeStatusRecord(TaskStatusRecord *record);
509475SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
510476bool swift_task_hasTaskGroupStatusRecord ();
511477
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-
524478SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
525479size_t swift_task_getJobFlags (AsyncTask* task);
526480
0 commit comments