X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/93febfac36849590249336fa6f948b0217f12b1d..826366cbffbdff8141ac74dae93880b21d6b7d69:/src/simix/popping_accessors.hpp diff --git a/src/simix/popping_accessors.hpp b/src/simix/popping_accessors.hpp index 5c30dffc19..bad3633310 100644 --- a/src/simix/popping_accessors.hpp +++ b/src/simix/popping_accessors.hpp @@ -15,490 +15,6 @@ */ #include "src/simix/popping_private.hpp" -static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[0]); -} -static inline smx_actor_t simcall_comm_recv__getraw__receiver(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[0]); -} -static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) -{ - simgrid::simix::marshal(simcall->args_[0], arg); -} -static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[1]); -} -static inline smx_mailbox_t simcall_comm_recv__getraw__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[1]); -} -static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) -{ - simgrid::simix::marshal(simcall->args_[1], arg); -} -static inline unsigned char* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[2]); -} -static inline unsigned char* simcall_comm_recv__getraw__dst_buff(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[2]); -} -static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, unsigned char* arg) -{ - simgrid::simix::marshal(simcall->args_[2], arg); -} -static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[3]); -} -static inline size_t* simcall_comm_recv__getraw__dst_buff_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[3]); -} -static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) -{ - simgrid::simix::marshal(simcall->args_[3], arg); -} -static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[4]); -} -static inline simix_match_func_t simcall_comm_recv__getraw__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[4]); -} -static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) -{ - simgrid::simix::marshal(simcall->args_[4], arg); -} -static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[5]); -} -static inline simix_copy_data_func_t simcall_comm_recv__getraw__copy_data_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[5]); -} -static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) -{ - simgrid::simix::marshal(simcall->args_[5], arg); -} -static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[6]); -} -static inline void* simcall_comm_recv__getraw__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[6]); -} -static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) -{ - simgrid::simix::marshal(simcall->args_[6], arg); -} -static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[7]); -} -static inline double simcall_comm_recv__getraw__timeout(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[7]); -} -static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args_[7], arg); -} -static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[8]); -} -static inline double simcall_comm_recv__getraw__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[8]); -} -static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args_[8], arg); -} - -static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[0]); -} -static inline smx_actor_t simcall_comm_irecv__getraw__receiver(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[0]); -} -static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) -{ - simgrid::simix::marshal(simcall->args_[0], arg); -} -static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[1]); -} -static inline smx_mailbox_t simcall_comm_irecv__getraw__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[1]); -} -static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) -{ - simgrid::simix::marshal(simcall->args_[1], arg); -} -static inline unsigned char* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[2]); -} -static inline unsigned char* simcall_comm_irecv__getraw__dst_buff(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[2]); -} -static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, unsigned char* arg) -{ - simgrid::simix::marshal(simcall->args_[2], arg); -} -static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[3]); -} -static inline size_t* simcall_comm_irecv__getraw__dst_buff_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[3]); -} -static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) -{ - simgrid::simix::marshal(simcall->args_[3], arg); -} -static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[4]); -} -static inline simix_match_func_t simcall_comm_irecv__getraw__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[4]); -} -static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) -{ - simgrid::simix::marshal(simcall->args_[4], arg); -} -static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[5]); -} -static inline simix_copy_data_func_t simcall_comm_irecv__getraw__copy_data_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[5]); -} -static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) -{ - simgrid::simix::marshal(simcall->args_[5], arg); -} -static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[6]); -} -static inline void* simcall_comm_irecv__getraw__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[6]); -} -static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) -{ - simgrid::simix::marshal(simcall->args_[6], arg); -} -static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[7]); -} -static inline double simcall_comm_irecv__getraw__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[7]); -} -static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args_[7], arg); -} -static inline boost::intrusive_ptr simcall_comm_irecv__get__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal>(simcall->result_); -} -static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_irecv__getraw__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->result_); -} -static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, boost::intrusive_ptr result) -{ - simgrid::simix::marshal>(simcall->result_, result); -} - -static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[0]); -} -static inline smx_actor_t simcall_comm_send__getraw__sender(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[0]); -} -static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg) -{ - simgrid::simix::marshal(simcall->args_[0], arg); -} -static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[1]); -} -static inline smx_mailbox_t simcall_comm_send__getraw__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[1]); -} -static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) -{ - simgrid::simix::marshal(simcall->args_[1], arg); -} -static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[2]); -} -static inline double simcall_comm_send__getraw__task_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[2]); -} -static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args_[2], arg); -} -static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[3]); -} -static inline double simcall_comm_send__getraw__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[3]); -} -static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args_[3], arg); -} -static inline unsigned char* simcall_comm_send__get__src_buff(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[4]); -} -static inline unsigned char* simcall_comm_send__getraw__src_buff(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[4]); -} -static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, unsigned char* arg) -{ - simgrid::simix::marshal(simcall->args_[4], arg); -} -static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[5]); -} -static inline size_t simcall_comm_send__getraw__src_buff_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[5]); -} -static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) -{ - simgrid::simix::marshal(simcall->args_[5], arg); -} -static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[6]); -} -static inline simix_match_func_t simcall_comm_send__getraw__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[6]); -} -static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) -{ - simgrid::simix::marshal(simcall->args_[6], arg); -} -static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[7]); -} -static inline simix_copy_data_func_t simcall_comm_send__getraw__copy_data_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[7]); -} -static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) -{ - simgrid::simix::marshal(simcall->args_[7], arg); -} -static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[8]); -} -static inline void* simcall_comm_send__getraw__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[8]); -} -static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) -{ - simgrid::simix::marshal(simcall->args_[8], arg); -} -static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[9]); -} -static inline double simcall_comm_send__getraw__timeout(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[9]); -} -static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args_[9], arg); -} - -static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[0]); -} -static inline smx_actor_t simcall_comm_isend__getraw__sender(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[0]); -} -static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg) -{ - simgrid::simix::marshal(simcall->args_[0], arg); -} -static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[1]); -} -static inline smx_mailbox_t simcall_comm_isend__getraw__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[1]); -} -static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) -{ - simgrid::simix::marshal(simcall->args_[1], arg); -} -static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[2]); -} -static inline double simcall_comm_isend__getraw__task_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[2]); -} -static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args_[2], arg); -} -static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[3]); -} -static inline double simcall_comm_isend__getraw__rate(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[3]); -} -static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) -{ - simgrid::simix::marshal(simcall->args_[3], arg); -} -static inline unsigned char* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[4]); -} -static inline unsigned char* simcall_comm_isend__getraw__src_buff(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[4]); -} -static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, unsigned char* arg) -{ - simgrid::simix::marshal(simcall->args_[4], arg); -} -static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[5]); -} -static inline size_t simcall_comm_isend__getraw__src_buff_size(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[5]); -} -static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) -{ - simgrid::simix::marshal(simcall->args_[5], arg); -} -static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[6]); -} -static inline simix_match_func_t simcall_comm_isend__getraw__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[6]); -} -static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) -{ - simgrid::simix::marshal(simcall->args_[6], arg); -} -static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[7]); -} -static inline simix_clean_func_t simcall_comm_isend__getraw__clean_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[7]); -} -static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) -{ - simgrid::simix::marshal(simcall->args_[7], arg); -} -static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[8]); -} -static inline simix_copy_data_func_t simcall_comm_isend__getraw__copy_data_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[8]); -} -static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) -{ - simgrid::simix::marshal(simcall->args_[8], arg); -} -static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[9]); -} -static inline void* simcall_comm_isend__getraw__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[9]); -} -static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) -{ - simgrid::simix::marshal(simcall->args_[9], arg); -} -static inline bool simcall_comm_isend__get__detached(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args_[10]); -} -static inline bool simcall_comm_isend__getraw__detached(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args_[10]); -} -static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, bool arg) -{ - simgrid::simix::marshal(simcall->args_[10], arg); -} -static inline boost::intrusive_ptr simcall_comm_isend__get__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal>(simcall->result_); -} -static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_isend__getraw__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->result_); -} -static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, boost::intrusive_ptr result) -{ - simgrid::simix::marshal>(simcall->result_, result); -} - static inline simgrid::kernel::activity::CommImpl** simcall_comm_waitany__get__comms(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args_[0]); @@ -601,9 +117,5 @@ 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_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_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_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);