mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user