Version: 1.4
LanguageEnglish
  • C#

AtomicSafetyHandle.EnforceAllBufferJobsHaveCompletedAndDisableReadWrite

Declaration

public static Unity.Collections.LowLevel.Unsafe.EnforceJobResult EnforceAllBufferJobsHaveCompletedAndDisableReadWrite(Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle);

Parameters

handle Safety handle.

Returns

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

Description

Waits for all jobs running against this AtomicSafetyHandle to complete and then disables the read and write access on this atomic safety handle.

When read and write acess is disabled the only thing you can do with the atomic safety handle is to dispose it.


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答