Skip to content

Commit 17d1afe

Browse files
committed
add swift_task_checkIsolatedImpl to CooperativeGlobalExecutor
1 parent e4478cb commit 17d1afe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stdlib/public/Concurrency/CooperativeGlobalExecutor.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/// swift_task_enqueueGlobalImpl
1919
/// swift_task_enqueueGlobalWithDelayImpl
2020
/// swift_task_enqueueMainExecutorImpl
21+
/// swift_task_checkIsolatedImpl
2122
/// as well as any cooperative-executor-specific functions in the runtime.
2223
///
2324
///===------------------------------------------------------------------===///
@@ -257,3 +258,10 @@ swift_task_donateThreadToGlobalExecutorUntil(bool (*condition)(void *),
257258
swift_job_run(job, SerialExecutorRef::generic());
258259
}
259260
}
261+
262+
SWIFT_CC(swift)
263+
static void swift_task_checkIsolatedImpl(SerialExecutorRef executor) {
264+
_task_serialExecutor_checkIsolated(
265+
executor.getIdentity(), swift_getObjectType(executor.getIdentity()),
266+
executor.getSerialExecutorWitnessTable());
267+
}

0 commit comments

Comments
 (0)