# Create()

> Creates a new AtomicSafetyHandle.

## Definition

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

```csharp
public static AtomicSafetyHandle Create()
```

### Returns

| Type                                                                                                          | Description                           |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| [AtomicSafetyHandle](/engine/6000.3/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle.md) | The newly created AtomicSafetyHandle. |

### Remarks

If the memory associated with this NativeContainer is allocated using [Allocator.Temp](/engine/6000.3/script-reference/unity/collections/allocator/temp.md), then use [AtomicSafetyHandle.GetTempMemoryHandle](/engine/6000.3/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle/gettempmemoryhandle.md) instead of this method.

Additional Resources: [AtomicSafetyHandle.Release](/engine/6000.3/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle/release.md).
