Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplify how shareResources() is called in each models
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 22 Nov 2015 23:08:33 +0000 (00:08 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 22 Nov 2015 23:08:36 +0000 (00:08 +0100)
commit6d66c399ea878db4ccfd7aafb7a157ec6a101d88
treeeb4b23058971d6bdcdf0a47b0cfef7619176dabe
parent63d18c86bbffb905a9d31dc2384596cead30529a
Simplify how shareResources() is called in each models

- Host->shareResources() is in charge of calling the ones of Cpu, Net
  and Storage
- VM->shareResources() must be called after the Host one

So, don't make a list `model_list_invoke` of two elements that must be
called in a very specific order. Instead, directly call these methodes
in surf_solve().

A next step could be to put the content of Host->shareResources and
maybe VM->shareResources() in surf_solve so that Host and VM can stop
being resources just to dispatch calls to the real resources.

But L07 must be dealed with before (eg by moving the content of
Host07->shareResource() into Cpu07->shareResources() and leaving
Link07->shareResources() empty).
src/include/surf/surf.h
src/surf/host_clm03.cpp
src/surf/host_ptask_L07.cpp
src/surf/surf_c_bindings.cpp
src/surf/vm_hl13.cpp