Beispiel #1
0
void MapTable::addObject(MapObject &obj)
{
	unsigned idx = getIndex(obj.idObject);

	if(obj.table == this || !map)
		return;

	obj.detach();
	enterMutex();	
	obj.nextObject = map[idx];
	map[idx] = &obj;
	leaveMutex();
}