/// <summary>
        /// Disposes of this container and deallocates its memory immediately.
        /// </summary>
        public void Dispose()
        {
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            DisposeSentinel.Dispose(ref m_Safety, ref m_DisposeSentinel);
#endif
            NativeQueueData.DeallocateQueue(m_Buffer, m_QueuePool, m_AllocatorLabel);
            m_Buffer = null;
        }
 public void Dispose()
 {
     NativeQueueData.DeallocateQueue(m_Buffer, m_QueuePool, m_AllocatorLabel);
 }
Beispiel #3
0
 void Deallocate()
 {
     NativeQueueData.DeallocateQueue(m_Buffer, m_QueuePool, m_AllocatorLabel);
     m_Buffer = null;
 }