Struct NativeQueue<T>
Syntax
public struct NativeQueue<T> : IDisposable where T : struct
Type Parameters
Constructors
NativeQueue(Allocator)
Declaration
public NativeQueue(Allocator label)
Parameters
Type |
Name |
Description |
Allocator |
label |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
IsCreated
Declaration
public bool IsCreated { get; }
Property Value
MemoryBlockSize
Declaration
public static int MemoryBlockSize { get; }
Property Value
PersistentMemoryBlockCount
Declaration
public static int PersistentMemoryBlockCount { get; set; }
Property Value
Methods
AsParallelWriter()
Declaration
public NativeQueue<T>.ParallelWriter AsParallelWriter()
Returns
Clear()
Declaration
Dequeue()
Declaration
Returns
Dispose()
Disposes of this container and deallocates its memory immediately.
Declaration
Dispose(JobHandle)
Safely disposes of this container and deallocates its memory when the jobs that use it have completed.
Declaration
public JobHandle Dispose(JobHandle inputDeps)
Parameters
Type |
Name |
Description |
JobHandle |
inputDeps |
|
Returns
Type |
Description |
JobHandle |
A new job handle containing the prior handles as well as the handle for the job that deletes
the container.
|
Remarks
Enqueue(T)
Declaration
public void Enqueue(T entry)
Parameters
Type |
Name |
Description |
T |
entry |
|
Peek()
Declaration
Returns
TryDequeue(out T)
Declaration
public bool TryDequeue(out T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Extension Methods