Documentation

Unity Engine

Unity Engine

EnforceAllBufferJobsHaveCompletedAndDisableReadWrite(AtomicSafetyHandle)

Waits for all jobs running against an AtomicSafetyHandle to complete and then disables the read and write access on the AtomicSafetyHandle.
Read time 1 minuteLast updated 2 months ago

Definition

public static EnforceJobResult EnforceAllBufferJobsHaveCompletedAndDisableReadWrite(AtomicSafetyHandle handle)

Parameters

The AtomicSafetyHandle to check.

Returns

Type

Description

EnforceJobResultWhether the job system waited for any jobs to finish.

Remarks

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