//----------------------------------------------------------------// void zipfs_tlsf_destroy_pool ( ZIPFS_TLSF_POOL* opaque ) { ZIPFSTlsfPool* pool = ( ZIPFSTlsfPool* )opaque; if ( pool ) { tlsf_destroy ( pool->mPool ); free ( pool->mBuffer ); free ( pool ); } }
AllocatorTLSF_Impl::~AllocatorTLSF_Impl() { if (Stats.NumAllocations != 0) tlsf_walk_heap(hPool, TraceAllocated, DebugName); //AssertX(Stats.NumAllocations == 0, "Allocator %s being destroyed with %u allocations still unfreed! This may leave dangling pointers. See trace for addresses.", DebugName, Stats.NumAllocations); AssertX(AllocatorTLSF_Impl::IsValid(), "TLSF Heap is corrupt"); tlsf_destroy(hPool); }
void dettachTlsMemortPool() { nc::thread::ScopedLock< nc::thread::Mutex > lock( g_commonHeapMtex ); tlsf_destroy( g_tlsfPool_tls[0] ); g_tlsfPool_tls[0] = 0; }
void _mem_destroy(void* start){ tlsf_destroy(start); }