docs.unity.cn
    Show / Hide Table of Contents

    Struct NativeQueue<T>.ParallelWriter

    A parallel writer for a NativeQueue.

    Namespace: Unity.Collections
    Syntax
    [NativeContainer]
    [NativeContainerIsAtomicWriteOnly]
    public struct ParallelWriter
    Remarks

    Use AsParallelWriter() to create a parallel writer for a NativeQueue.

    Methods

    Enqueue(T)

    Adds an element at the front of the queue.

    Declaration
    public void Enqueue(T value)
    Parameters
    Type Name Description
    T value

    The value to be enqueued.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, August 3, 2022
    Terms of use