文档

Unity Engine

Unity Engine

CreateSafetyHandle(AllocatorHandle)

Creates a new AtomicSafetyHandle that is valid until CollectionHelper.DisposeSafetyHandle is called.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public static AtomicSafetyHandle CreateSafetyHandle(AllocatorManager.AllocatorHandle allocator)

Parameters

The AllocatorHandle to use.

Returns

Type

Description

AtomicSafetyHandleSafety handle.