Assets/Plugins/Unity.Media.Utilities/Runtime/AtomicFreeList.cs
/// <summary>
/// Disposes the free list and releases all freed elements
/// </summary>
Disposes the free list and releases all freed elements
Disposes the free list and releases all freed elements
public void Dispose()
        {
            var allocator = (m_AllocationMode == AllocationMode.Ephemeral ? Allocator.TempJob : m_Allocator);
            for (AtomicNode* node = PopFromFreeList(); node != null; node = PopFromFreeList())
                Utility.FreeUnsafe(node, allocator);
            Utility.FreeUnsafe(m_FreeList, m_Allocator);
        }
public void Dispose ( ) { var allocator = ( m_AllocationMode == AllocationMode . Ephemeral ? Allocator . TempJob : m_Allocator ) ; for ( AtomicNode * node = PopFromFreeList ( ) ; node != null ; node = PopFromFreeList ( ) ) Utility . FreeUnsafe ( node , allocator ) ; Utility . FreeUnsafe ( m_FreeList , m_Allocator ) ; }
Disposes the free list and releases all freed elements
Disposes the free list and releases all freed elements