- Audited some other stuff
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1165 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
bd6e52f811
commit
7bcd220f89
3 changed files with 173 additions and 139 deletions
|
@ -20,8 +20,8 @@
|
|||
|
||||
#include "dynamic_resource.hh"
|
||||
#include "static_resource.hh"
|
||||
#include <sgpemv2/serialize_visitor.hh>
|
||||
|
||||
#include <sgpemv2/serialize_visitor.hh>
|
||||
#include <sgpemv2/templates/smartp.tcc>
|
||||
|
||||
#include <cassert>
|
||||
|
@ -40,7 +40,6 @@ DynamicResource::operator==(const Resource& op2) const
|
|||
return _static_resource == dynamic_cast<const DynamicResource&>(op2)._static_resource;
|
||||
}
|
||||
|
||||
|
||||
Glib::ustring
|
||||
DynamicResource::get_name() const
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// src/backend/resource_policy_priority_inheritance.hh - Copyright 2005, 2006, University
|
||||
// src/backend/sgpemv2/resource_policy_priority_inheritance.hh - Copyright 2005, 2006, University
|
||||
// of Padova, dept. of Pure and Applied
|
||||
// Mathematics
|
||||
//
|
||||
|
@ -21,31 +21,33 @@
|
|||
#ifndef RESOURCE_POLICY_INHERITANCE_HH
|
||||
#define RESOURCE_POLICY_INHERITANCE_HH 1
|
||||
|
||||
#include "config.h"
|
||||
#include "gettext.h"
|
||||
|
||||
#include "glibmm/ustring.h"
|
||||
|
||||
#include <sgpemv2/resource_policy.hh>
|
||||
|
||||
#include <sgpemv2/policy_parameters.hh>
|
||||
#include <sgpemv2/user_interrupt_exception.hh>
|
||||
|
||||
namespace sgpem
|
||||
{
|
||||
class ResourcePolicyPriorityInheritance;
|
||||
}
|
||||
|
||||
/** \brief
|
||||
It's a Strategy wich stay for a resource allocating algorithm.
|
||||
It implements the related resource allocation policy.
|
||||
*/
|
||||
#include "config.h"
|
||||
#include "gettext.h"
|
||||
|
||||
#include <sgpemv2/resource_policy.hh>
|
||||
#include <sgpemv2/policy_parameters.hh>
|
||||
#include <sgpemv2/user_interrupt_exception.hh>
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
namespace sgpem
|
||||
{
|
||||
/**
|
||||
* \brief It's a Strategy wich stay for a resource allocating algorithm.
|
||||
* It implements the related resource allocation policy.
|
||||
*/
|
||||
class SG_DLLEXPORT ResourcePolicyPriorityInheritance : public ResourcePolicy
|
||||
{
|
||||
public:
|
||||
virtual ~ResourcePolicyPriorityInheritance();
|
||||
|
||||
/**
|
||||
Initialize the inner components of the policy.
|
||||
\brief Initialize the inner components of the policy.
|
||||
|
||||
Because it's a pure virtual method, must be re-implemented
|
||||
in concrete derived classes.
|
||||
|
@ -53,15 +55,17 @@ namespace sgpem
|
|||
virtual void configure() throw(UserInterruptException);
|
||||
|
||||
/**
|
||||
Mixes the queues.
|
||||
\brief Mixes the queues.
|
||||
|
||||
Because it's a pure virtual method, must be re-implemented
|
||||
in concrete derived classes.
|
||||
*/
|
||||
virtual void enforce(Environment& environment, Environment::SubRequestQueue& queue, SubRequest& sr) throw(UserInterruptException);
|
||||
virtual void enforce(Environment& environment,
|
||||
Environment::SubRequestQueue& queue,
|
||||
SubRequest& sr) throw(UserInterruptException);
|
||||
|
||||
/**
|
||||
Gets a string description of the policy.
|
||||
\brief Gets a string description of the policy.
|
||||
|
||||
Because it's a pure virtual method, must be re-implemented
|
||||
in concrete derived classes.
|
||||
|
@ -76,7 +80,7 @@ namespace sgpem
|
|||
virtual void deactivate();
|
||||
|
||||
/**
|
||||
Gets the parameters related with this policy.
|
||||
\brief Gets the parameters related with this policy.
|
||||
|
||||
\return The policy parameters.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue