# CheckDeallocateAndThrow(AtomicSafetyHandle)

> Check if an AtomicSafetyHandle can be deallocated.

## Definition

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

```csharp
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void CheckDeallocateAndThrow(AtomicSafetyHandle handle)
```

### Parameters

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

### Remarks

Throws an exception if the AtomicSafetyHandle has already been destroyed or a job is currently accessing the data.
