X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/23f4a1521c0658ea2450c97e70616b6d04de97d7..dca78d0426c59e786f1633ef14b3c8b99ab7e9e0:/src/simix/popping_accessors.h diff --git a/src/simix/popping_accessors.h b/src/simix/popping_accessors.h index b7d2284995..343b8a1ea1 100644 --- a/src/simix/popping_accessors.h +++ b/src/simix/popping_accessors.h @@ -14,41 +14,6 @@ */ #include "src/simix/popping_private.h" -static inline sg_host_t simcall_vm_suspend__get__ind_vm(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_vm_suspend__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} - -static inline sg_host_t simcall_vm_resume__get__ind_vm(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_vm_resume__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} - -static inline sg_host_t simcall_vm_shutdown__get__ind_vm(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_vm_shutdown__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} - -static inline sg_host_t simcall_vm_save__get__ind_vm(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_vm_save__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} - -static inline sg_host_t simcall_vm_restore__get__ind_vm(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_vm_restore__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} - static inline smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[0]); } @@ -215,13 +180,11 @@ static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t s static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) { simgrid::simix::marshal(simcall->args[6], arg); } -static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) -{ +static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[7]); } -static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args[7], arg); +static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) { + simgrid::simix::marshal(simcall->args[7], arg); } static inline smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){ return simgrid::simix::unmarshal(simcall->result); @@ -321,32 +284,6 @@ static inline void simcall_process_restart__set__result(smx_simcall_t simcall, s simgrid::simix::marshal(simcall->result, result); } -static inline const char* simcall_mbox_create__get__name(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_mbox_create__set__name(smx_simcall_t simcall, const char* arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline smx_mailbox_t simcall_mbox_create__get__result(smx_simcall_t simcall){ - return simgrid::simix::unmarshal(simcall->result); -} -static inline void simcall_mbox_create__set__result(smx_simcall_t simcall, smx_mailbox_t result){ - simgrid::simix::marshal(simcall->result, result); -} - -static inline smx_mailbox_t simcall_mbox_set_receiver__get__mbox(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_mbox_set_receiver__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline smx_actor_t simcall_mbox_set_receiver__get__receiver(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[1]); -} -static inline void simcall_mbox_set_receiver__set__receiver(smx_simcall_t simcall, smx_actor_t arg) { - simgrid::simix::marshal(simcall->args[1], arg); -} - static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[0]); } @@ -1041,32 +978,6 @@ static inline void simcall_file_move__set__result(smx_simcall_t simcall, int res simgrid::simix::marshal(simcall->result, result); } -static inline smx_storage_t simcall_storage_get_free_size__get__storage(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_storage_get_free_size__set__storage(smx_simcall_t simcall, smx_storage_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline sg_size_t simcall_storage_get_free_size__get__result(smx_simcall_t simcall){ - return simgrid::simix::unmarshal(simcall->result); -} -static inline void simcall_storage_get_free_size__set__result(smx_simcall_t simcall, sg_size_t result){ - simgrid::simix::marshal(simcall->result, result); -} - -static inline smx_storage_t simcall_storage_get_used_size__get__name(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_storage_get_used_size__set__name(smx_simcall_t simcall, smx_storage_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline sg_size_t simcall_storage_get_used_size__get__result(smx_simcall_t simcall){ - return simgrid::simix::unmarshal(simcall->result); -} -static inline void simcall_storage_get_used_size__set__result(smx_simcall_t simcall, sg_size_t result){ - simgrid::simix::marshal(simcall->result, result); -} - static inline smx_storage_t simcall_storage_get_properties__get__storage(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[0]); } @@ -1080,32 +991,6 @@ static inline void simcall_storage_get_properties__set__result(smx_simcall_t sim simgrid::simix::marshal(simcall->result, result); } -static inline smx_storage_t simcall_storage_get_content__get__storage(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_storage_get_content__set__storage(smx_simcall_t simcall, smx_storage_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline xbt_dict_t simcall_storage_get_content__get__result(smx_simcall_t simcall){ - return simgrid::simix::unmarshal(simcall->result); -} -static inline void simcall_storage_get_content__set__result(smx_simcall_t simcall, xbt_dict_t result){ - simgrid::simix::marshal(simcall->result, result); -} - -static inline const char* simcall_asr_get_properties__get__name(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline void simcall_asr_get_properties__set__name(smx_simcall_t simcall, const char* arg) { - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline xbt_dict_t simcall_asr_get_properties__get__result(smx_simcall_t simcall){ - return simgrid::simix::unmarshal(simcall->result); -} -static inline void simcall_asr_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){ - simgrid::simix::marshal(simcall->result, result); -} - static inline int simcall_mc_random__get__min(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[0]); } @@ -1154,9 +1039,6 @@ static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::f /* The prototype of all simcall handlers, automatically generated for you */ -XBT_PRIVATE void simcall_HANDLER_vm_suspend(smx_simcall_t simcall, sg_host_t ind_vm); -XBT_PRIVATE void simcall_HANDLER_vm_shutdown(smx_simcall_t simcall, sg_host_t ind_vm); -XBT_PRIVATE void simcall_HANDLER_vm_save(smx_simcall_t simcall, sg_host_t ind_vm); XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process); XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid); XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process); @@ -1195,7 +1077,4 @@ XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_ XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin); XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd); XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath); -XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_free_size(smx_simcall_t simcall, smx_storage_t storage); -XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_used_size(smx_simcall_t simcall, smx_storage_t name); -XBT_PRIVATE xbt_dict_t simcall_HANDLER_asr_get_properties(smx_simcall_t simcall, const char* name); XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max); \ No newline at end of file