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