Assets/Plugins/Unity.Media.Utilities/Runtime/AtomicFreeList.cs
/// <summary>
/// Releases an element into the free list
/// </summary>
/// <remarks>If the allocation mode is ephemeral, the element will be freed immediately</remarks>
/// <param name="element">The element to be released</param>
Releases an element into the free list
Releases an element into the free list
public void Release(T* element)
        {
            if (m_AllocationMode == AllocationMode.Ephemeral)
                Utility.FreeUnsafe(element, Allocator.TempJob);
            else
                PushToFreeList((AtomicNode*)element);
        }
public void Release ( T * element ) { if ( m_AllocationMode == AllocationMode . Ephemeral ) Utility . FreeUnsafe ( element , Allocator . TempJob ) ; else PushToFreeList ( ( AtomicNode * ) element ) ; }
Releases an element into the free list
Releases an element into the free list
// TODO: Upper bound on free list size?
element
T*
The element to be released
The element to be released
remarks
If the allocation mode is ephemeral, the element will be freed immediately
If the allocation mode is ephemeral the element will be freed immediately