lumiera_/src/lib/allocationcluster.cpp

72 lines
2 KiB
C++

/*
AllocationCluster - allocating and owning a pile of objects
Copyright (C) Lumiera.org
2008, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *****************************************************/
#include "lib/allocationcluster.hpp"
#include "common/error.hpp"
//#include "common/util.hpp"
//using util::isnil;
//using util::cStr;
namespace lib {
/** creating a new AllocationCluster prepares a table capable
* of holding the individual object families to come. Each of those
* is managed by a separate instance of the low-level memory manager.
*/
AllocationCluster::AllocationCluster()
// : configParam_ (new Configmap),
{
}
/** On shutdown of the AllocationCluster we need to assure a certain
* destruction order is maintained by explicitly invoking a cleanup
* operation on each of the low-level memory manager objects.
*/
AllocationCluster::~AllocationCluster() throw()
{
try
{
}
catch (lumiera::Error & ex)
{
WARN (oper, "Exception while closing AllocationCluster: %s",ex.what());
}
catch (...)
{
ERROR (NOBUG_ON, "Unexpected fatal Exception while closing AllocationCluster. Application will terminate.");
throw;
}
}
// ==== implementation LifecycleHook class =======
//x
} // namespace lib