- Small fix to let the application work

using ResourcePoliciesGatekeeper


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@968 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
matrevis 2006-08-30 21:09:47 +00:00
parent 685a6d84f0
commit 26755fd876
4 changed files with 27 additions and 3 deletions

View file

@ -25,11 +25,17 @@
using namespace sgpem;
// instantiate a default instance of this class.
DefaultResourcePolicyManager DefaultResourcePolicyManager::_default_instance;
DefaultResourcePolicyManager::DefaultResourcePolicyManager()
{
ResourcePolicy * lifo = new ResourcePolicyLiFo();
_policies.push_back(lifo);
ResourcePoliciesGatekeeper::get_instance().register_manager(this);
// Includes default policies.
_policies.push_back(new ResourcePolicyLiFo());
}

View file

@ -55,6 +55,10 @@ namespace sgpem
private:
std::vector<ResourcePolicy*> _policies;
// an Instance of this class is created by default and it is registered to
// the ResourcePolicyGateKeeper
static DefaultResourcePolicyManager _default_instance;
};
} //~ namespace sgpem