void *CFSLockFreeFixAlloc::Alloc(){ if (m_pFreeHandle){ CFSFixAllocHandle *pBlock=m_pFreeHandle; m_pFreeHandle=m_pFreeHandle->m_pNext; m_lCacheSpace++; return pBlock; } return FSAlloc(m_ipBlockSize); }
void *operator new[](size_t nSize) { return FSAlloc(nSize); }