A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix a compilation error at SIMIX_vm_shutdown
[simgrid.git]
/
src
/
simix
/
smx_user.c
diff --git
a/src/simix/smx_user.c
b/src/simix/smx_user.c
index
0b292a1
..
79a9fb1
100644
(file)
--- a/
src/simix/smx_user.c
+++ b/
src/simix/smx_user.c
@@
-282,15
+282,26
@@
e_smx_state_t simcall_host_execution_wait(smx_action_t execution)
* \param host A host
* \return The properties of this host
*/
* \param host A host
* \return The properties of this host
*/
-void* simcall_vm_create(const char *name, smx_host_t phys_host)
{
+void* simcall_vm_create(const char *name, smx_host_t phys_host)
{
return simcall_BODY_vm_create(name, phys_host);
}
{
return simcall_BODY_vm_create(name, phys_host);
}
+void simcall_vm_start(smx_host_t vm)
+{
+ simcall_BODY_set_vm_state(vm, msg_vm_state_running);
+}
-void simcall_vm_start(smx_host_t vm){
+void simcall_vm_shutdown(smx_host_t vm)
+{
+ /* will jump to SIMIX_pre_vm_shutdown */
+ simcall_BODY_vm_shutdown(vm);
+}
- simcall_BODY_set_vm_state(vm, msg_vm_state_running);
+void simcall_vm_destroy(smx_host_t vm)
+{
+ /* will jump to SIMIX_pre_vm_destroy */
+ simcall_BODY_vm_destroy(vm);
}
/**
}
/**