Show / Hide Table of Contents

Struct AtomicSafetyHandle

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: Unity.Collections.LowLevel.Unsafe
Assembly: UnityEngine.dll
Syntax
public struct AtomicSafetyHandle

Methods

CheckDeallocateAndThrow(AtomicSafetyHandle)

Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void CheckDeallocateAndThrow(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
| Improve this Doc View Source

CheckExistsAndThrow(AtomicSafetyHandle)

Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void CheckExistsAndThrow(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle

CheckGetSecondaryDataPointerAndThrow(AtomicSafetyHandle)

Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void CheckGetSecondaryDataPointerAndThrow(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
| Improve this Doc View Source

CheckReadAndThrow(AtomicSafetyHandle)

Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void CheckReadAndThrow(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle

CheckWriteAndBumpSecondaryVersion(AtomicSafetyHandle)

Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void CheckWriteAndBumpSecondaryVersion(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
| Improve this Doc View Source

CheckWriteAndThrow(AtomicSafetyHandle)

Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void CheckWriteAndThrow(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle

Create()

Declaration
public static AtomicSafetyHandle Create()
Returns
Type Description
AtomicSafetyHandle

EnforceAllBufferJobsHaveCompleted(AtomicSafetyHandle)

Declaration
public static EnforceJobResult EnforceAllBufferJobsHaveCompleted(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
Returns
Type Description
EnforceJobResult

EnforceAllBufferJobsHaveCompletedAndDisableReadWrite(AtomicSafetyHandle)

Declaration
public static EnforceJobResult EnforceAllBufferJobsHaveCompletedAndDisableReadWrite(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
Returns
Type Description
EnforceJobResult

EnforceAllBufferJobsHaveCompletedAndRelease(AtomicSafetyHandle)

Declaration
public static EnforceJobResult EnforceAllBufferJobsHaveCompletedAndRelease(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
Returns
Type Description
EnforceJobResult

GetAllowReadOrWriteAccess(AtomicSafetyHandle)

Declaration
public static bool GetAllowReadOrWriteAccess(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
Returns
Type Description
Boolean

GetReaderArray(AtomicSafetyHandle, Int32, IntPtr)

Declaration
public static int GetReaderArray(AtomicSafetyHandle handle, int maxCount, IntPtr output)
Parameters
Type Name Description
AtomicSafetyHandle handle
Int32 maxCount
IntPtr output
Returns
Type Description
Int32

GetReaderName(AtomicSafetyHandle, Int32)

Declaration
public static string GetReaderName(AtomicSafetyHandle handle, int readerIndex)
Parameters
Type Name Description
AtomicSafetyHandle handle
Int32 readerIndex
Returns
Type Description
String

GetTempMemoryHandle()

Declaration
public static AtomicSafetyHandle GetTempMemoryHandle()
Returns
Type Description
AtomicSafetyHandle

GetTempUnsafePtrSliceHandle()

Declaration
public static AtomicSafetyHandle GetTempUnsafePtrSliceHandle()
Returns
Type Description
AtomicSafetyHandle

GetWriter(AtomicSafetyHandle)

Declaration
public static JobHandle GetWriter(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
Returns
Type Description
JobHandle

GetWriterName(AtomicSafetyHandle)

Declaration
public static string GetWriterName(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
Returns
Type Description
String

IsTempMemoryHandle(AtomicSafetyHandle)

Declaration
public static bool IsTempMemoryHandle(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle
Returns
Type Description
Boolean

PrepareUndisposable(ref AtomicSafetyHandle)

Declaration
public static void PrepareUndisposable(ref AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle

Release(AtomicSafetyHandle)

Declaration
public static void Release(AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle

SetAllowReadOrWriteAccess(AtomicSafetyHandle, Boolean)

Declaration
public static void SetAllowReadOrWriteAccess(AtomicSafetyHandle handle, bool allowReadWriteAccess)
Parameters
Type Name Description
AtomicSafetyHandle handle
Boolean allowReadWriteAccess

SetAllowSecondaryVersionWriting(AtomicSafetyHandle, Boolean)

Declaration
public static void SetAllowSecondaryVersionWriting(AtomicSafetyHandle handle, bool allowWriting)
Parameters
Type Name Description
AtomicSafetyHandle handle
Boolean allowWriting

UseSecondaryVersion(ref AtomicSafetyHandle)

Declaration
public static void UseSecondaryVersion(ref AtomicSafetyHandle handle)
Parameters
Type Name Description
AtomicSafetyHandle handle

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX