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 19 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
public static EnforceJobResult EnforceAllBufferJobsHaveCompletedAndDisableReadWrite(AtomicSafetyHandle handle)
Parameters
The AtomicSafetyHandle to check.
Returns
Type | Description |
|---|---|
| EnforceJobResult | Whether the job system waited for any jobs to finish. |
Remarks
When read and write acess is disabled, you can only dispose of the AtomicSafetyHandle.