Assets/Plugins/Unity.Media.Utilities/Runtime/AtomicFreeList.cs
/// <summary>
/// Allocate a new AtomicNode with the provided payload and next pointers
/// </summary>
/// <param name="payload">The payload for the new node</param>
/// <param name="next">The next pointer for the new node</param>
/// <param name="allocator">The native allocator to use</param>
/// <returns></returns>
Allocate a new AtomicNode with the provided payload and next pointers
Allocate a new AtomicNode with the provided payload and next pointers
public static unsafe AtomicNode* Create(long payload = 0, long next = 0, Allocator allocator = Allocator.TempJob)
        {
            var node = Utility.AllocateUnsafe<AtomicNode>(1, allocator);
            node->Next = next;
            node->Payload = payload;
            return node;
        }
public static unsafe AtomicNode * Create ( long payload = 0 , long next = 0 , Allocator allocator = Allocator . TempJob ) { var node = Utility . AllocateUnsafe < AtomicNode > ( 1 , allocator ) ; node -> Next = next ; node -> Payload = payload ; return node ; }
Allocate a new AtomicNode with the provided payload and next pointers
Allocate a new AtomicNode with the provided payload and next pointers
None
payload
long
The payload for the new node
The payload for the new node
next
long
The next pointer for the new node
The next pointer for the new node
allocator
Allocator
The native allocator to use
The native allocator to use