Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a model object to the arguments of callbacks
authorTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Thu, 14 Feb 2013 16:49:55 +0000 (17:49 +0100)
committerTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Thu, 14 Feb 2013 16:49:55 +0000 (17:49 +0100)
commit295541f9111c4baca435138275d78aeea5d7816b
tree25c9e09adac48b179c278a91884652accb1203d5
parent1cfb943f5745e4801fb6d2e88dd6e46f55bd7339
add a model object to the arguments of callbacks

For VM support, we have multiple cpu model objects on the system. The
object of a surf model may not be only one on the system. Thus, we have
to modify the code that assumes the system has only one global object of
each surf model.

We add a model object to the first argument of the callbacks of struct
surf_model_private; i.e., share_resources(), update_actions_state(), and
finalize(). In each callbacks, we delete the use of the global model
object.
13 files changed:
src/surf/cpu_cas01.c
src/surf/cpu_ti.c
src/surf/network.c
src/surf/network_constant.c
src/surf/network_gtnets.c
src/surf/network_ns3.c
src/surf/new_model.c
src/surf/storage.c
src/surf/surf.c
src/surf/surf_private.h
src/surf/vm_workstation.c
src/surf/workstation.c
src/surf/workstation_ptask_L07.c