OSCL_EXPORT_REF OsclMemPoolFixedChunkAllocator::~OsclMemPoolFixedChunkAllocator() { // Decrement the ref count --iRefCount; // If ref count reaches 0 then destroy this object if (iRefCount <= 0) { destroymempool(); } }
OSCL_EXPORT_REF ThreadSafeMemPoolFixedChunkAllocator::~ThreadSafeMemPoolFixedChunkAllocator() { // Decrement the ref count --iRefCount; // If ref count reaches 0 then destroy this object if (iRefCount <= 0) { destroymempool(); } iMemPoolMutex.Close(); }