手册
脚本 API
unity3d.com
Version:
2018.4
2022.1
2021.3
2021.2
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
手册
脚本 API
语言:
中文
English
中文
日本語
Español
한국어
Русский
脚本 API
Version:
2018.4
2022.1
2021.3
2021.2
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
DisposeSentinel
.Dispose
切换到手册
public static void
Dispose
(ref
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle
safety
, ref
Unity.Collections.LowLevel.Unsafe.DisposeSentinel
sentinel
);
参数
safety
调用 Create 时返回 AtomicSafetyHandle。
sentinel
DisposeSentinel。
描述
释放 AtomicSafetyHandle 并清除 DisposeSentinel。
如果无法释放 AtomicSafetyHandle(通常是因为作业正在访问数据或因为句柄已被释放),则会抛出异常。