X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdf6a962eb4e88efbed3df9c41343adabcf09e6c..c97656604936a7d3000ee3c98e0926b80f6f2150:/src/simix/popping_accessors.hpp diff --git a/src/simix/popping_accessors.hpp b/src/simix/popping_accessors.hpp index 066b3edc43..379db02d1e 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-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2020. The SimGrid Team. All rights reserved. */ /**********************************************************************/ /* @@ -27,6 +27,18 @@ static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, { simgrid::simix::marshal(simcall->args_[0], arg); } +static inline double simcall_execution_wait__get__timeout(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal(simcall->args_[1]); +} +static inline double simcall_execution_wait__getraw__timeout(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal_raw(simcall->args_[1]); +} +static inline void simcall_execution_wait__set__timeout(smx_simcall_t simcall, double arg) +{ + simgrid::simix::marshal(simcall->args_[1], arg); +} static inline int simcall_execution_wait__get__result(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->result_); @@ -921,6 +933,18 @@ static inline void simcall_io_wait__set__io(smx_simcall_t simcall, simgrid::kern { simgrid::simix::marshal(simcall->args_[0], arg); } +static inline double simcall_io_wait__get__timeout(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal(simcall->args_[1]); +} +static inline double simcall_io_wait__getraw__timeout(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal_raw(simcall->args_[1]); +} +static inline void simcall_io_wait__set__timeout(smx_simcall_t simcall, double arg) +{ + simgrid::simix::marshal(simcall->args_[1], arg); +} static inline sg_size_t simcall_io_wait__get__result(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->result_); @@ -934,6 +958,31 @@ static inline void simcall_io_wait__set__result(smx_simcall_t simcall, sg_size_t simgrid::simix::marshal(simcall->result_, result); } +static inline simgrid::kernel::activity::IoImpl* simcall_io_test__get__io(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal(simcall->args_[0]); +} +static inline simgrid::kernel::activity::IoImpl* simcall_io_test__getraw__io(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal_raw(simcall->args_[0]); +} +static inline void simcall_io_test__set__io(smx_simcall_t simcall, simgrid::kernel::activity::IoImpl* arg) +{ + simgrid::simix::marshal(simcall->args_[0], arg); +} +static inline bool simcall_io_test__get__result(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal(simcall->result_); +} +static inline bool simcall_io_test__getraw__result(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal_raw(simcall->result_); +} +static inline void simcall_io_test__set__result(smx_simcall_t simcall, bool 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]); @@ -999,7 +1048,7 @@ 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_execution_wait(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl* execution); +XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl* execution, double timeout); 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); @@ -1017,5 +1066,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_io_wait(smx_simcall_t simcall, simgrid::kernel::activity::IoImpl* io); +XBT_PRIVATE void simcall_HANDLER_io_wait(smx_simcall_t simcall, simgrid::kernel::activity::IoImpl* io, double timeout); +XBT_PRIVATE void simcall_HANDLER_io_test(smx_simcall_t simcall, simgrid::kernel::activity::IoImpl* io); XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);