Version: 2023.2

AtomicSafetyHandle.EnforceAllBufferJobsHaveCompletedAndRelease

切换到手册
public static Unity.Collections.LowLevel.Unsafe.EnforceJobResult EnforceAllBufferJobsHaveCompletedAndRelease (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle);

参数

handle 安全句柄。

返回

EnforceJobResult A value describing how much work was done by the job system to complete the request.

描述

等待针对该 AtomicSafetyHandle 运行的所有任务完成,然后释放该原子安全句柄。