示例#1
0
		// -------------------------------------------------------------------------------------------------------
		Bool AllocatorMT::Free( void* ptr )
		{
			UInt32 threadID = (UInt32)GetCurrentThreadId();
			MemPool* pool = FindPool(threadID);
			A_ASSERT(pool != 0, "Try to free a pointer which not in this thread!");
			return pool->Free(ptr);
		}
示例#2
0
	void XMLNode::DeleteNode(XMLNode* node)
	{
		if (node == 0)
		{
			return;
		}
		MemPool* pool = node->_memPool;
		node->~XMLNode();
		pool->Free(node);
	}
示例#3
0
	void XMLElement::DeleteAttribute(XMLAttribute* attribute)
	{
		if (attribute == 0)
		{
			return;
		}
		MemPool* pool = attribute->_memPool;
		attribute->~XMLAttribute();
		pool->Free(attribute);
	}