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
Type |
Description |
System.Int32 |
|
IsCreated
Declaration
public bool IsCreated { get; }
Property Value
Type |
Description |
System.Boolean |
|
MemoryBlockSize
Declaration
public static int MemoryBlockSize { get; }
Property Value
Type |
Description |
System.Int32 |
|
PersistentMemoryBlockCount
Declaration
public static int PersistentMemoryBlockCount { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
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
Type |
Description |
System.Boolean |
|
Extension Methods