X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7169524b7d6066c8ff315dfca1c529bf3e39a6b3..dbae853c4de0c0d66c97c961c370448bee5e1ab4:/src/simix/popping_bodies.cpp diff --git a/src/simix/popping_bodies.cpp b/src/simix/popping_bodies.cpp index bf3c72c124..8986295e89 100644 --- a/src/simix/popping_bodies.cpp +++ b/src/simix/popping_bodies.cpp @@ -43,7 +43,7 @@ inline static void simcall_BODY_vm_suspend(sg_host_t ind_vm) { inline static void simcall_BODY_vm_resume(sg_host_t ind_vm) { /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_vm_resume(&SIMIX_process_self()->simcall, ind_vm); + if (0) SIMIX_vm_resume(ind_vm); return simcall(SIMCALL_VM_RESUME, ind_vm); } @@ -59,12 +59,6 @@ inline static void simcall_BODY_vm_save(sg_host_t ind_vm) { return simcall(SIMCALL_VM_SAVE, ind_vm); } -inline static void simcall_BODY_vm_restore(sg_host_t ind_vm) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_vm_restore(&SIMIX_process_self()->simcall, ind_vm); - return simcall(SIMCALL_VM_RESTORE, ind_vm); - } - inline static void simcall_BODY_process_kill(smx_actor_t process) { /* Go to that function to follow the code flow through the simcall barrier */ if (0) simcall_HANDLER_process_kill(&SIMIX_process_self()->simcall, process); @@ -91,7 +85,7 @@ inline static void simcall_BODY_process_suspend(smx_actor_t process) { inline static void simcall_BODY_process_resume(smx_actor_t process) { /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_process_resume(&SIMIX_process_self()->simcall, process); + if (0) SIMIX_process_resume(process); return simcall(SIMCALL_PROCESS_RESUME, process); } @@ -124,17 +118,11 @@ inline static smx_activity_t simcall_BODY_execution_start(const char* name, doub if (0) simcall_HANDLER_execution_start(&SIMIX_process_self()->simcall, name, flops_amount, priority, bound); return simcall(SIMCALL_EXECUTION_START, name, flops_amount, priority, bound); } - - inline static smx_activity_t simcall_BODY_execution_parallel_start(const char* name, int host_nb, - sg_host_t* host_list, double* flops_amount, - double* bytes_amount, double amount, double rate, - double timeout) - { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) - SIMIX_execution_parallel_start(name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout); - return simcall( - SIMCALL_EXECUTION_PARALLEL_START, name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout); + +inline static smx_activity_t simcall_BODY_execution_parallel_start(const char* name, int host_nb, sg_host_t* host_list, double* flops_amount, double* bytes_amount, double amount, double rate, double timeout) { + /* Go to that function to follow the code flow through the simcall barrier */ + if (0) SIMIX_execution_parallel_start(name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout); + return simcall(SIMCALL_EXECUTION_PARALLEL_START, name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout); } inline static void simcall_BODY_execution_cancel(smx_activity_t execution) {