X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8efeb3a6aa2c201800a3ba19416ea9728af3bff6..51d099097598a993323850816311d3f78956e6a0:/src/simix/popping_accessors.hpp diff --git a/src/simix/popping_accessors.hpp b/src/simix/popping_accessors.hpp index 072cf55725..22e6200d2b 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-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved. */ /**********************************************************************/ /* @@ -143,67 +143,6 @@ static inline void simcall_execution_test__set__result(smx_simcall_t simcall, in simgrid::simix::marshal(simcall->result, result); } -static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline smx_mailbox_t simcall_comm_iprobe__getraw__mbox(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[1]); -} -static inline int simcall_comm_iprobe__getraw__type(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[1]); -} -static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) -{ - simgrid::simix::marshal(simcall->args[1], arg); -} -static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[2]); -} -static inline simix_match_func_t simcall_comm_iprobe__getraw__match_fun(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[2]); -} -static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) -{ - simgrid::simix::marshal(simcall->args[2], arg); -} -static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal(simcall->args[3]); -} -static inline void* simcall_comm_iprobe__getraw__data(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[3]); -} -static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) -{ - simgrid::simix::marshal(simcall->args[3], arg); -} -static inline boost::intrusive_ptr simcall_comm_iprobe__get__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal>(simcall->result); -} -static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_iprobe__getraw__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->result); -} -static inline void simcall_comm_iprobe__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]); @@ -987,76 +926,29 @@ static inline void simcall_sem_acquire_timeout__set__result(smx_simcall_t simcal simgrid::simix::marshal(simcall->result, result); } -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) -{ - 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); -} -static inline sg_size_t simcall_storage_read__getraw__result(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->result); -} -static inline void simcall_storage_read__set__result(smx_simcall_t simcall, sg_size_t 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) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} -static inline sg_size_t simcall_storage_write__get__size(smx_simcall_t simcall) +static inline boost::intrusive_ptr +simcall_io_wait__get__io(smx_simcall_t simcall) { - return simgrid::simix::unmarshal(simcall->args[1]); + return simgrid::simix::unmarshal>(simcall->args[0]); } -static inline sg_size_t simcall_storage_write__getraw__size(smx_simcall_t simcall) +static inline simgrid::kernel::activity::ActivityImpl* simcall_io_wait__getraw__io(smx_simcall_t simcall) { - return simgrid::simix::unmarshal_raw(simcall->args[1]); + return simgrid::simix::unmarshal_raw(simcall->args[0]); } -static inline void simcall_storage_write__set__size(smx_simcall_t simcall, sg_size_t arg) +static inline void simcall_io_wait__set__io(smx_simcall_t simcall, + boost::intrusive_ptr arg) { - simgrid::simix::marshal(simcall->args[1], arg); + simgrid::simix::marshal>(simcall->args[0], 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); } @@ -1133,7 +1025,6 @@ XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, boost::in XBT_PRIVATE void simcall_HANDLER_execution_test(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); @@ -1149,6 +1040,6 @@ 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 void simcall_HANDLER_io_wait(smx_simcall_t simcall, + boost::intrusive_ptr io); XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max); \ No newline at end of file