X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ecd5f7562caf1d443bf22788fa5f4fac408776ec..f06f53287a228a869aba211842c5e46ab29b116a:/src/simix/popping_accessors.hpp diff --git a/src/simix/popping_accessors.hpp b/src/simix/popping_accessors.hpp index 020056e3f0..5fe37d3a1f 100644 --- a/src/simix/popping_accessors.hpp +++ b/src/simix/popping_accessors.hpp @@ -4,7 +4,7 @@ /* DO NOT EVER CHANGE THIS FILE */ /* */ /* change simcalls specification in src/simix/simcalls.in */ -/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved. */ /**********************************************************************/ /* @@ -15,32 +15,6 @@ */ #include "src/simix/popping_private.hpp" -static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline int simcall_process_killall__getraw__reset_pid(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} - -static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline smx_actor_t simcall_process_cleanup__getraw__process(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} - static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[0]); @@ -54,43 +28,6 @@ static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, simgrid::simix::marshal(simcall->args[0], arg); } -static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline smx_actor_t simcall_process_join__getraw__process(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline double simcall_process_join__get__timeout(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[1]); -} -static inline double simcall_process_join__getraw__timeout(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[1]); -} -static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args[1], arg); -} -static inline int simcall_process_join__get__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->result); -} -static inline int simcall_process_join__getraw__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->result); -} -static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result) -{ - simgrid::simix::marshal(simcall->result, result); -} - static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[0]); @@ -116,175 +53,17 @@ 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 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) +static inline simgrid::kernel::activity::ExecImpl* simcall_execution_wait__get__execution(smx_simcall_t simcall) { - return simgrid::simix::unmarshal>(simcall->args[0]); + return simgrid::simix::unmarshal(simcall->args[0]); } -static inline simgrid::kernel::activity::ActivityImpl* simcall_execution_wait__getraw__execution(smx_simcall_t simcall) +static inline simgrid::kernel::activity::ExecImpl* simcall_execution_wait__getraw__execution(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[0]); + return simgrid::simix::unmarshal_raw(simcall->args[0]); } -static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, boost::intrusive_ptr arg) +static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl* arg) { - simgrid::simix::marshal>(simcall->args[0], arg); + simgrid::simix::marshal(simcall->args[0], arg); } static inline int simcall_execution_wait__get__result(smx_simcall_t simcall) { @@ -299,102 +78,78 @@ static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, in simgrid::simix::marshal(simcall->result, result); } -static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline smx_actor_t simcall_process_on_exit__getraw__process(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[1]); -} -static inline int_f_pvoid_pvoid_t simcall_process_on_exit__getraw__fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[1]); -} -static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) -{ - simgrid::simix::marshal(simcall->args[1], arg); -} -static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) +static inline simgrid::kernel::activity::ExecImpl** simcall_execution_waitany_for__get__execs(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[2]); + return simgrid::simix::unmarshal(simcall->args[0]); } -static inline void* simcall_process_on_exit__getraw__data(smx_simcall_t simcall) +static inline simgrid::kernel::activity::ExecImpl** simcall_execution_waitany_for__getraw__execs(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[2]); + return simgrid::simix::unmarshal_raw(simcall->args[0]); } -static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) +static inline void simcall_execution_waitany_for__set__execs(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl** arg) { - simgrid::simix::marshal(simcall->args[2], arg); + simgrid::simix::marshal(simcall->args[0], arg); } - -static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) +static inline size_t simcall_execution_waitany_for__get__count(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); + return simgrid::simix::unmarshal(simcall->args[1]); } -static inline smx_mailbox_t simcall_comm_iprobe__getraw__mbox(smx_simcall_t simcall) +static inline size_t simcall_execution_waitany_for__getraw__count(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[0]); + return simgrid::simix::unmarshal_raw(simcall->args[1]); } -static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) +static inline void simcall_execution_waitany_for__set__count(smx_simcall_t simcall, size_t arg) { - simgrid::simix::marshal(simcall->args[0], arg); + simgrid::simix::marshal(simcall->args[1], arg); } -static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) +static inline double simcall_execution_waitany_for__get__timeout(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[1]); + return simgrid::simix::unmarshal(simcall->args[2]); } -static inline int simcall_comm_iprobe__getraw__type(smx_simcall_t simcall) +static inline double simcall_execution_waitany_for__getraw__timeout(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[1]); + return simgrid::simix::unmarshal_raw(simcall->args[2]); } -static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) +static inline void simcall_execution_waitany_for__set__timeout(smx_simcall_t simcall, double arg) { - simgrid::simix::marshal(simcall->args[1], arg); + simgrid::simix::marshal(simcall->args[2], arg); } -static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) +static inline int simcall_execution_waitany_for__get__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[2]); + return simgrid::simix::unmarshal(simcall->result); } -static inline simix_match_func_t simcall_comm_iprobe__getraw__match_fun(smx_simcall_t simcall) +static inline int simcall_execution_waitany_for__getraw__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[2]); + return simgrid::simix::unmarshal_raw(simcall->result); } -static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) +static inline void simcall_execution_waitany_for__set__result(smx_simcall_t simcall, int result) { - simgrid::simix::marshal(simcall->args[2], arg); + simgrid::simix::marshal(simcall->result, result); } -static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) + +static inline simgrid::kernel::activity::ExecImpl* simcall_execution_test__get__execution(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[3]); + return simgrid::simix::unmarshal(simcall->args[0]); } -static inline void* simcall_comm_iprobe__getraw__data(smx_simcall_t simcall) +static inline simgrid::kernel::activity::ExecImpl* simcall_execution_test__getraw__execution(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[3]); + return simgrid::simix::unmarshal_raw(simcall->args[0]); } -static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) +static inline void simcall_execution_test__set__execution(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl* arg) { - simgrid::simix::marshal(simcall->args[3], arg); + simgrid::simix::marshal(simcall->args[0], arg); } -static inline boost::intrusive_ptr simcall_comm_iprobe__get__result(smx_simcall_t simcall) +static inline bool simcall_execution_test__get__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal>(simcall->result); + return simgrid::simix::unmarshal(simcall->result); } -static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_iprobe__getraw__result(smx_simcall_t simcall) +static inline bool simcall_execution_test__getraw__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->result); + return simgrid::simix::unmarshal_raw(simcall->result); } -static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, boost::intrusive_ptr result) +static inline void simcall_execution_test__set__result(smx_simcall_t simcall, bool result) { - simgrid::simix::marshal>(simcall->result, result); + simgrid::simix::marshal(simcall->result, result); } static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) @@ -445,17 +200,17 @@ static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double ar { simgrid::simix::marshal(simcall->args[3], arg); } -static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) +static inline unsigned char* simcall_comm_send__get__src_buff(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[4]); + return simgrid::simix::unmarshal(simcall->args[4]); } -static inline void* simcall_comm_send__getraw__src_buff(smx_simcall_t simcall) +static inline unsigned char* simcall_comm_send__getraw__src_buff(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[4]); + return simgrid::simix::unmarshal_raw(simcall->args[4]); } -static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) +static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, unsigned char* arg) { - simgrid::simix::marshal(simcall->args[4], arg); + simgrid::simix::marshal(simcall->args[4], arg); } static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) { @@ -566,17 +321,17 @@ static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double a { simgrid::simix::marshal(simcall->args[3], arg); } -static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) +static inline unsigned char* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[4]); + return simgrid::simix::unmarshal(simcall->args[4]); } -static inline void* simcall_comm_isend__getraw__src_buff(smx_simcall_t simcall) +static inline unsigned char* simcall_comm_isend__getraw__src_buff(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[4]); + return simgrid::simix::unmarshal_raw(simcall->args[4]); } -static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) +static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, unsigned char* arg) { - simgrid::simix::marshal(simcall->args[4], arg); + simgrid::simix::marshal(simcall->args[4], arg); } static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) { @@ -638,17 +393,17 @@ static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* ar { simgrid::simix::marshal(simcall->args[9], arg); } -static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) +static inline bool simcall_comm_isend__get__detached(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[10]); + return simgrid::simix::unmarshal(simcall->args[10]); } -static inline int simcall_comm_isend__getraw__detached(smx_simcall_t simcall) +static inline bool simcall_comm_isend__getraw__detached(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[10]); + return simgrid::simix::unmarshal_raw(simcall->args[10]); } -static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) +static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, bool arg) { - simgrid::simix::marshal(simcall->args[10], arg); + simgrid::simix::marshal(simcall->args[10], arg); } static inline boost::intrusive_ptr simcall_comm_isend__get__result(smx_simcall_t simcall) { @@ -687,17 +442,17 @@ static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailb { simgrid::simix::marshal(simcall->args[1], arg); } -static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) +static inline unsigned char* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[2]); + return simgrid::simix::unmarshal(simcall->args[2]); } -static inline void* simcall_comm_recv__getraw__dst_buff(smx_simcall_t simcall) +static inline unsigned char* simcall_comm_recv__getraw__dst_buff(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[2]); + return simgrid::simix::unmarshal_raw(simcall->args[2]); } -static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) +static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, unsigned char* arg) { - simgrid::simix::marshal(simcall->args[2], arg); + simgrid::simix::marshal(simcall->args[2], arg); } static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) { @@ -796,17 +551,17 @@ static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mail { simgrid::simix::marshal(simcall->args[1], arg); } -static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) +static inline unsigned char* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[2]); + return simgrid::simix::unmarshal(simcall->args[2]); } -static inline void* simcall_comm_irecv__getraw__dst_buff(smx_simcall_t simcall) +static inline unsigned char* simcall_comm_irecv__getraw__dst_buff(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[2]); + return simgrid::simix::unmarshal_raw(simcall->args[2]); } -static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) +static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, unsigned char* arg) { - simgrid::simix::marshal(simcall->args[2], arg); + simgrid::simix::marshal(simcall->args[2], arg); } static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) { @@ -881,29 +636,41 @@ static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, boost: simgrid::simix::marshal>(simcall->result, result); } -static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) +static inline simgrid::kernel::activity::CommImpl** simcall_comm_waitany__get__comms(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); + return simgrid::simix::unmarshal(simcall->args[0]); } -static inline xbt_dynar_t simcall_comm_waitany__getraw__comms(smx_simcall_t simcall) +static inline simgrid::kernel::activity::CommImpl** simcall_comm_waitany__getraw__comms(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[0]); + return simgrid::simix::unmarshal_raw(simcall->args[0]); } -static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) +static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl** arg) { - simgrid::simix::marshal(simcall->args[0], arg); + simgrid::simix::marshal(simcall->args[0], arg); +} +static inline size_t simcall_comm_waitany__get__count(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal(simcall->args[1]); +} +static inline size_t simcall_comm_waitany__getraw__count(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal_raw(simcall->args[1]); +} +static inline void simcall_comm_waitany__set__count(smx_simcall_t simcall, size_t arg) +{ + simgrid::simix::marshal(simcall->args[1], arg); } static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[1]); + return simgrid::simix::unmarshal(simcall->args[2]); } static inline double simcall_comm_waitany__getraw__timeout(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[1]); + return simgrid::simix::unmarshal_raw(simcall->args[2]); } static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) { - simgrid::simix::marshal(simcall->args[1], arg); + simgrid::simix::marshal(simcall->args[2], arg); } static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall) { @@ -918,17 +685,17 @@ static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int simgrid::simix::marshal(simcall->result, result); } -static inline boost::intrusive_ptr simcall_comm_wait__get__comm(smx_simcall_t simcall) +static inline simgrid::kernel::activity::CommImpl* simcall_comm_wait__get__comm(smx_simcall_t simcall) { - return simgrid::simix::unmarshal>(simcall->args[0]); + return simgrid::simix::unmarshal(simcall->args[0]); } -static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_wait__getraw__comm(smx_simcall_t simcall) +static inline simgrid::kernel::activity::CommImpl* simcall_comm_wait__getraw__comm(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[0]); + return simgrid::simix::unmarshal_raw(simcall->args[0]); } -static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, boost::intrusive_ptr arg) +static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl* arg) { - simgrid::simix::marshal>(simcall->args[0], arg); + simgrid::simix::marshal(simcall->args[0], arg); } static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) { @@ -943,42 +710,42 @@ static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double simgrid::simix::marshal(simcall->args[1], arg); } -static inline boost::intrusive_ptr simcall_comm_test__get__comm(smx_simcall_t simcall) +static inline simgrid::kernel::activity::CommImpl* simcall_comm_test__get__comm(smx_simcall_t simcall) { - return simgrid::simix::unmarshal>(simcall->args[0]); + return simgrid::simix::unmarshal(simcall->args[0]); } -static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_test__getraw__comm(smx_simcall_t simcall) +static inline simgrid::kernel::activity::CommImpl* simcall_comm_test__getraw__comm(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[0]); + return simgrid::simix::unmarshal_raw(simcall->args[0]); } -static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, boost::intrusive_ptr arg) +static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl* arg) { - simgrid::simix::marshal>(simcall->args[0], arg); + simgrid::simix::marshal(simcall->args[0], arg); } -static inline int simcall_comm_test__get__result(smx_simcall_t simcall) +static inline bool simcall_comm_test__get__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->result); + return simgrid::simix::unmarshal(simcall->result); } -static inline int simcall_comm_test__getraw__result(smx_simcall_t simcall) +static inline bool simcall_comm_test__getraw__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->result); + return simgrid::simix::unmarshal_raw(simcall->result); } -static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result) +static inline void simcall_comm_test__set__result(smx_simcall_t simcall, bool result) { - simgrid::simix::marshal(simcall->result, result); + simgrid::simix::marshal(simcall->result, result); } -static inline boost::intrusive_ptr* simcall_comm_testany__get__comms(smx_simcall_t simcall) +static inline simgrid::kernel::activity::CommImpl** simcall_comm_testany__get__comms(smx_simcall_t simcall) { - return simgrid::simix::unmarshal*>(simcall->args[0]); + return simgrid::simix::unmarshal(simcall->args[0]); } -static inline simgrid::kernel::activity::ActivityImpl** simcall_comm_testany__getraw__comms(smx_simcall_t simcall) +static inline simgrid::kernel::activity::CommImpl** simcall_comm_testany__getraw__comms(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[0]); + return simgrid::simix::unmarshal_raw(simcall->args[0]); } -static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, boost::intrusive_ptr* arg) +static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl** arg) { - simgrid::simix::marshal*>(simcall->args[0], arg); + simgrid::simix::marshal(simcall->args[0], arg); } static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) { @@ -1056,32 +823,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_signal__get__cond(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline smx_cond_t simcall_cond_signal__getraw__cond(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} - static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[0]); @@ -1143,18 +884,17 @@ static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall { simgrid::simix::marshal(simcall->args[2], arg); } - -static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) +static inline int simcall_cond_wait_timeout__get__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[0]); + return simgrid::simix::unmarshal(simcall->result); } -static inline smx_cond_t simcall_cond_broadcast__getraw__cond(smx_simcall_t simcall) +static inline int simcall_cond_wait_timeout__getraw__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[0]); + return simgrid::simix::unmarshal_raw(simcall->result); } -static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) +static inline void simcall_cond_wait_timeout__set__result(smx_simcall_t simcall, int result) { - simgrid::simix::marshal(simcall->args[0], arg); + simgrid::simix::marshal(simcall->result, result); } static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) @@ -1194,77 +934,40 @@ static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simca { simgrid::simix::marshal(simcall->args[1], arg); } - -static inline surf_storage_t simcall_storage_read__get__st(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline surf_storage_t simcall_storage_read__getraw__st(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_storage_read__set__st(smx_simcall_t simcall, surf_storage_t arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline sg_size_t simcall_storage_read__get__size(smx_simcall_t simcall) +static inline int simcall_sem_acquire_timeout__get__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[1]); -} -static inline sg_size_t simcall_storage_read__getraw__size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[1]); -} -static inline void simcall_storage_read__set__size(smx_simcall_t simcall, sg_size_t arg) -{ - simgrid::simix::marshal(simcall->args[1], arg); -} -static inline sg_size_t simcall_storage_read__get__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->result); + return simgrid::simix::unmarshal(simcall->result); } -static inline sg_size_t simcall_storage_read__getraw__result(smx_simcall_t simcall) +static inline int simcall_sem_acquire_timeout__getraw__result(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->result); + return simgrid::simix::unmarshal_raw(simcall->result); } -static inline void simcall_storage_read__set__result(smx_simcall_t simcall, sg_size_t result) +static inline void simcall_sem_acquire_timeout__set__result(smx_simcall_t simcall, int result) { - simgrid::simix::marshal(simcall->result, result); + simgrid::simix::marshal(simcall->result, result); } -static inline surf_storage_t simcall_storage_write__get__st(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline surf_storage_t simcall_storage_write__getraw__st(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_storage_write__set__st(smx_simcall_t simcall, surf_storage_t arg) +static inline simgrid::kernel::activity::IoImpl* simcall_io_wait__get__io(smx_simcall_t simcall) { - simgrid::simix::marshal(simcall->args[0], arg); + return simgrid::simix::unmarshal(simcall->args[0]); } -static inline sg_size_t simcall_storage_write__get__size(smx_simcall_t simcall) +static inline simgrid::kernel::activity::IoImpl* simcall_io_wait__getraw__io(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[1]); + return simgrid::simix::unmarshal_raw(simcall->args[0]); } -static inline sg_size_t simcall_storage_write__getraw__size(smx_simcall_t simcall) +static inline void simcall_io_wait__set__io(smx_simcall_t simcall, simgrid::kernel::activity::IoImpl* arg) { - return simgrid::simix::unmarshal_raw(simcall->args[1]); + simgrid::simix::marshal(simcall->args[0], arg); } -static inline void simcall_storage_write__set__size(smx_simcall_t simcall, sg_size_t arg) -{ - simgrid::simix::marshal(simcall->args[1], arg); -} -static inline sg_size_t simcall_storage_write__get__result(smx_simcall_t simcall) +static inline sg_size_t simcall_io_wait__get__result(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->result); } -static inline sg_size_t simcall_storage_write__getraw__result(smx_simcall_t simcall) +static inline sg_size_t simcall_io_wait__getraw__result(smx_simcall_t simcall) { return simgrid::simix::unmarshal_raw(simcall->result); } -static inline void simcall_storage_write__set__result(smx_simcall_t simcall, sg_size_t result) +static inline void simcall_io_wait__set__result(smx_simcall_t simcall, sg_size_t result) { simgrid::simix::marshal(simcall->result, result); } @@ -1306,31 +1009,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]); @@ -1359,21 +1037,19 @@ 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_process_killall(smx_simcall_t simcall, int reset_pid); XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process); -XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout); XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration); -XBT_PRIVATE boost::intrusive_ptr simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound); -XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, boost::intrusive_ptr execution); -XBT_PRIVATE boost::intrusive_ptr simcall_HANDLER_comm_iprobe(smx_simcall_t simcall, smx_mailbox_t mbox, int type, simix_match_func_t match_fun, void* data); -XBT_PRIVATE void simcall_HANDLER_comm_send(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout); -XBT_PRIVATE boost::intrusive_ptr simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_clean_func_t clean_fun, simix_copy_data_func_t copy_data_fun, void* data, int detached); -XBT_PRIVATE void simcall_HANDLER_comm_recv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout, double rate); -XBT_PRIVATE boost::intrusive_ptr simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double rate); -XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout); -XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, boost::intrusive_ptr comm, double timeout); -XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, boost::intrusive_ptr comm); -XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, boost::intrusive_ptr* comms, size_t count); +XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl* execution); +XBT_PRIVATE void simcall_HANDLER_execution_waitany_for(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl** execs, size_t count, double timeout); +XBT_PRIVATE void simcall_HANDLER_execution_test(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl* execution); +XBT_PRIVATE void simcall_HANDLER_comm_send(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, unsigned char* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout); +XBT_PRIVATE boost::intrusive_ptr simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, unsigned char* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_clean_func_t clean_fun, simix_copy_data_func_t copy_data_fun, void* data, bool detached); +XBT_PRIVATE void simcall_HANDLER_comm_recv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, unsigned char* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout, double rate); +XBT_PRIVATE boost::intrusive_ptr simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, unsigned char* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double rate); +XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl** comms, size_t count, double timeout); +XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl* comm, double timeout); +XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl* comm); +XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl** comms, size_t count); XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex); XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex); XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex); @@ -1381,6 +1057,5 @@ XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t con XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout); XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem); XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout); -XBT_PRIVATE void simcall_HANDLER_storage_read(smx_simcall_t simcall, surf_storage_t st, sg_size_t size); -XBT_PRIVATE void simcall_HANDLER_storage_write(smx_simcall_t simcall, surf_storage_t st, sg_size_t size); -XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max); \ No newline at end of file +XBT_PRIVATE void simcall_HANDLER_io_wait(smx_simcall_t simcall, simgrid::kernel::activity::IoImpl* io); +XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);