X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3f38d568f0b8155a643e15a3171177060ee15c3c..28cf1594ef109bb3cd215fd9b0f16a5418ca999e:/src/simix/popping_accessors.hpp diff --git a/src/simix/popping_accessors.hpp b/src/simix/popping_accessors.hpp index 020056e3f0..5d8c7d1ae1 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-2018. 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]); @@ -164,6 +138,18 @@ static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, do { 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); @@ -299,6 +285,34 @@ static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, in simgrid::simix::marshal(simcall->result, result); } +static inline boost::intrusive_ptr +simcall_execution_test__get__execution(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal>(simcall->args[0]); +} +static inline simgrid::kernel::activity::ActivityImpl* simcall_execution_test__getraw__execution(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal_raw(simcall->args[0]); +} +static inline void +simcall_execution_test__set__execution(smx_simcall_t simcall, + boost::intrusive_ptr arg) +{ + simgrid::simix::marshal>(simcall->args[0], arg); +} +static inline int simcall_execution_test__get__result(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal(simcall->result); +} +static inline int simcall_execution_test__getraw__result(smx_simcall_t simcall) +{ + return simgrid::simix::unmarshal_raw(simcall->result); +} +static inline void simcall_execution_test__set__result(smx_simcall_t simcall, int result) +{ + 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]); @@ -1069,19 +1083,6 @@ static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_con 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]); @@ -1144,19 +1145,6 @@ 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) -{ - return simgrid::simix::unmarshal(simcall->args[0]); -} -static inline smx_cond_t simcall_cond_broadcast__getraw__cond(smx_simcall_t simcall) -{ - return simgrid::simix::unmarshal_raw(simcall->args[0]); -} -static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) -{ - simgrid::simix::marshal(simcall->args[0], arg); -} - static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) { return simgrid::simix::unmarshal(simcall->args[0]); @@ -1359,12 +1347,13 @@ 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 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);