- Adjusted copy construction of the Dynamic* hierarchy. Hope this is what you wanted, Matteo...
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@751 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
b6b303c4e3
commit
8ffd81b823
7 changed files with 76 additions and 20 deletions
|
@ -44,8 +44,8 @@ namespace sgpem
|
|||
{
|
||||
public:
|
||||
DynamicThread(StaticThread* core, DynamicProcess* parent);
|
||||
DynamicThread(const DynamicThread &other);
|
||||
virtual ~DynamicThread();
|
||||
DynamicThread(const DynamicThread &other, DynamicProcess* parent);
|
||||
virtual ~DynamicThread();
|
||||
|
||||
DynamicProcess& get_process();
|
||||
|
||||
|
@ -65,14 +65,17 @@ namespace sgpem
|
|||
|
||||
void serialize(SerializeVisitor& translator) const;
|
||||
|
||||
virtual StaticThread& get_core();
|
||||
virtual const StaticThread& get_core() const;
|
||||
virtual StaticThread& get_core();
|
||||
virtual const StaticThread& get_core() const;
|
||||
|
||||
// Does also the job of "add_request" and "remove_request"
|
||||
std::vector<DynamicRequest*>& get_dynamic_requests();
|
||||
// Does also the job of "add_request" and "remove_request"
|
||||
std::vector<DynamicRequest*>& get_dynamic_requests();
|
||||
|
||||
private:
|
||||
memory::smart_ptr<StaticThread> _core;
|
||||
// Undefined
|
||||
DynamicThread(const DynamicThread &other);
|
||||
|
||||
memory::smart_ptr<StaticThread> _core;
|
||||
state _state;
|
||||
std::vector<DynamicRequest*> _dynamic_requests;
|
||||
DynamicProcess* _parent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue