Rename performOnExecutor into deinitOnExecutor.

It cannot be used for executing general-purpose work, because such function would need to have a different signature to pass isolated actor instance.

And being explicit about using this method only for deinit allows to use object pointer for comparison with executor identity.
This commit is contained in:
Mykola Pokhylets
2023-04-24 12:24:35 +02:00
parent a043ebf97a
commit 35f0334eb6
13 changed files with 51 additions and 50 deletions

View File

@@ -2333,11 +2333,11 @@ FUNCTION(TaskSwitchFunc,
EFFECT(Concurrency),
UNKNOWN_MEMEFFECTS)
// void swift_task_performOnExecutor(void *context,
// AdHocWorkFunction *work,
// SerialExecutorRef newExecutor);
FUNCTION(PerformOnExecutorFunc,
swift_task_performOnExecutor, SwiftCC,
// void swift_task_deinitOnExecutor(void *object,
// DeinitWorkFunction *work,
// SerialExecutorRef newExecutor);
FUNCTION(DeinitOnExecutorFunc,
swift_task_deinitOnExecutor, SwiftCC,
ConcurrencyAvailability,
RETURNS(VoidTy),
ARGS(Int8PtrTy, Int8PtrTy, ExecutorFirstTy, ExecutorSecondTy),