# EnforceAllBufferJobsHaveCompletedAndDisableReadWrite(AtomicSafetyHandle)

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

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.6/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static EnforceJobResult EnforceAllBufferJobsHaveCompletedAndDisableReadWrite(AtomicSafetyHandle handle)
```

### Parameters

**** (\[AtomicSafetyHandle]\(/engine/6000.6/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle)): The AtomicSafetyHandle to check.

### Returns

| Type                                                                                                      | Description                                           |
| --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [EnforceJobResult](/engine/6000.6/script-reference/unity/collections/lowlevel/unsafe/enforcejobresult.md) | 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.
