docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NativeQueue<T>.ParallelWriter

    A parallel writer for a NativeQueue.

    Namespace: Unity.Collections
    Assembly: Unity.Collections.dll
    Syntax
    [NativeContainer]
    [NativeContainerIsAtomicWriteOnly]
    public struct NativeQueue<T>.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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)