X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d60c93c4ec0ba158a9e58681f4df021f76e78f9e..8efeb3a6aa2c201800a3ba19416ea9728af3bff6:/src/simix/popping_accessors.hpp diff --git a/src/simix/popping_accessors.hpp b/src/simix/popping_accessors.hpp index 3a0db683bf..072cf55725 100644 --- a/src/simix/popping_accessors.hpp +++ b/src/simix/popping_accessors.hpp @@ -90,176 +90,6 @@ static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int simgrid::simix::marshal(simcall->result, result); } -static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline const char* simcall_execution_start__getraw__name(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[1]); -} -static inline double simcall_execution_start__getraw__flops_amount(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[1]); -} -static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args[1], arg); -} -static inline double simcall_execution_start__get__priority(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[2]); -} -static inline double simcall_execution_start__getraw__priority(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[2]); -} -static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args[2], arg); -} -static inline double simcall_execution_start__get__bound(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[3]); -} -static inline double simcall_execution_start__getraw__bound(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[3]); -} -static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args[3], arg); -} -static inline sg_host_t simcall_execution_start__get__host(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[4]); -} -static inline sg_host_t simcall_execution_start__getraw__host(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[4]); -} -static inline void simcall_execution_start__set__host(smx_simcall_t simcall, sg_host_t arg) -{ - simgrid::simix::marshal(simcall->args[4], arg); -} -static inline boost::intrusive_ptr simcall_execution_start__get__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal>(simcall->result); -} -static inline simgrid::kernel::activity::ExecImpl* simcall_execution_start__getraw__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->result); -} -static inline void simcall_execution_start__set__result(smx_simcall_t simcall, boost::intrusive_ptr result) -{ - simgrid::simix::marshal>(simcall->result, result); -} - -static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline const char* simcall_execution_parallel_start__getraw__name(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[1]); -} -static inline int simcall_execution_parallel_start__getraw__host_nb(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[1]); -} -static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) -{ - simgrid::simix::marshal(simcall->args[1], arg); -} -static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[2]); -} -static inline sg_host_t* simcall_execution_parallel_start__getraw__host_list(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[2]); -} -static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) -{ - simgrid::simix::marshal(simcall->args[2], arg); -} -static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[3]); -} -static inline double* simcall_execution_parallel_start__getraw__flops_amount(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[3]); -} -static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) -{ - simgrid::simix::marshal(simcall->args[3], arg); -} -static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[4]); -} -static inline double* simcall_execution_parallel_start__getraw__bytes_amount(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[4]); -} -static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) -{ - simgrid::simix::marshal(simcall->args[4], arg); -} -static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[5]); -} -static inline double simcall_execution_parallel_start__getraw__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[5]); -} -static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args[5], arg); -} -static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[6]); -} -static inline double simcall_execution_parallel_start__getraw__timeout(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[6]); -} -static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args[6], arg); -} -static inline boost::intrusive_ptr simcall_execution_parallel_start__get__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal>(simcall->result); -} -static inline simgrid::kernel::activity::ExecImpl* simcall_execution_parallel_start__getraw__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->result); -} -static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, boost::intrusive_ptr result) -{ - simgrid::simix::marshal>(simcall->result, result); -} - static inline boost::intrusive_ptr simcall_execution_wait__get__execution(smx_simcall_t simcall) { return simgrid::simix::unmarshal>(simcall->args[0]); @@ -1033,19 +863,6 @@ static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_m simgrid::simix::marshal(simcall->args[0], arg); } -static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->result); -} -static inline smx_cond_t simcall_cond_init__getraw__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->result); -} -static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result) -{ - simgrid::simix::marshal(simcall->result, result); -} - static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[0]); @@ -1107,6 +924,18 @@ static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall { simgrid::simix::marshal(simcall->args[2], arg); } +static inline int simcall_cond_wait_timeout__get__result(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal(simcall->result); +} +static inline int simcall_cond_wait_timeout__getraw__result(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal_raw(simcall->result); +} +static inline void simcall_cond_wait_timeout__set__result(smx_simcall_t simcall, int result) +{ + simgrid::simix::marshal(simcall->result, result); +} static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) { @@ -1145,6 +974,18 @@ static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simca { simgrid::simix::marshal(simcall->args[1], arg); } +static inline int simcall_sem_acquire_timeout__get__result(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal(simcall->result); +} +static inline int simcall_sem_acquire_timeout__getraw__result(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal_raw(simcall->result); +} +static inline void simcall_sem_acquire_timeout__set__result(smx_simcall_t simcall, int result) +{ + simgrid::simix::marshal(simcall->result, result); +} static inline surf_storage_t simcall_storage_read__get__st(smx_simcall_t simcall) { @@ -1257,31 +1098,6 @@ static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int res simgrid::simix::marshal(simcall->result, result); } -static inline boost::intrusive_ptr simcall_set_category__get__synchro(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal>(simcall->args[0]); -} -static inline simgrid::kernel::activity::ActivityImpl* simcall_set_category__getraw__synchro(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, boost::intrusive_ptr arg) -{ - simgrid::simix::marshal>(simcall->args[0], arg); -} -static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[1]); -} -static inline const char* simcall_set_category__getraw__category(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[1]); -} -static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) -{ - simgrid::simix::marshal(simcall->args[1], arg); -} - static inline std::function const* simcall_run_kernel__get__code(smx_simcall_t simcall) { return simgrid::simix::unmarshal const*>(simcall->args[0]);