Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to make timeouted semaphores robust to actors death
[simgrid.git] / src / simix / popping_accessors.hpp
1 /**********************************************************************/
2 /* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
3 /*                                                                    */
4 /*                    DO NOT EVER CHANGE THIS FILE                    */
5 /*                                                                    */
6 /* change simcalls specification in src/simix/simcalls.in             */
7 /* Copyright (c) 2014-2022. The SimGrid Team. All rights reserved.    */
8 /**********************************************************************/
9
10 /*
11  * Note that the name comes from http://en.wikipedia.org/wiki/Popping
12  * Indeed, the control flow is doing a strange dance in there.
13  *
14  * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
15  */
16
17 #include "src/simix/popping_private.hpp"
18 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall)
19 {
20   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args_[0]);
21 }
22 static inline std::function<void()> const* simcall_run_kernel__getraw__code(smx_simcall_t simcall)
23 {
24   return simgrid::simix::unmarshal_raw<std::function<void()> const*>(simcall->args_[0]);
25 }
26 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg)
27 {
28   simgrid::simix::marshal<std::function<void()> const*>(simcall->args_[0], arg);
29 }
30
31 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall)
32 {
33   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args_[0]);
34 }
35 static inline std::function<void()> const* simcall_run_blocking__getraw__code(smx_simcall_t simcall)
36 {
37   return simgrid::simix::unmarshal_raw<std::function<void()> const*>(simcall->args_[0]);
38 }
39 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg)
40 {
41   simgrid::simix::marshal<std::function<void()> const*>(simcall->args_[0], arg);
42 }
43
44 /* The prototype of all simcall handlers, automatically generated for you */