AtomicSafetyHandle.EnforceAllBufferJobsHaveCompletedAndDisableReadWrite

Declaration

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

Parameters

handle The AtomicSafetyHandle to check.

Returns

EnforceJobResult Whether the job system waited for any jobs to finish.

Description

Waits for all jobs running against an AtomicSafetyHandle to complete and then disables the read and write access on the AtomicSafetyHandle.

When read and write acess is disabled, you can only dispose of the AtomicSafetyHandle.


Did you find this page useful? Please give it a rating: