Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
45ed9326c81d8afe27f789d5473bb6ed5f9e7cc2
[simgrid.git] / src / simix / popping_accessors.h
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-2017. 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.h"
18 static inline smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall)
19 {
20   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
21 }
22 static inline smx_actor_t simcall_process_kill__getraw__process(smx_simcall_t simcall)
23 {
24   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
25 }
26 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_actor_t arg)
27 {
28   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
29 }
30
31 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall)
32 {
33   return simgrid::simix::unmarshal<int>(simcall->args[0]);
34 }
35 static inline int simcall_process_killall__getraw__reset_pid(smx_simcall_t simcall)
36 {
37   return simgrid::simix::unmarshal_raw<int>(simcall->args[0]);
38 }
39 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg)
40 {
41   simgrid::simix::marshal<int>(simcall->args[0], arg);
42 }
43
44 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall)
45 {
46   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
47 }
48 static inline smx_actor_t simcall_process_cleanup__getraw__process(smx_simcall_t simcall)
49 {
50   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
51 }
52 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg)
53 {
54   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
55 }
56
57 static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall)
58 {
59   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
60 }
61 static inline smx_actor_t simcall_process_suspend__getraw__process(smx_simcall_t simcall)
62 {
63   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
64 }
65 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_actor_t arg)
66 {
67   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
68 }
69
70 static inline smx_actor_t simcall_process_resume__get__process(smx_simcall_t simcall)
71 {
72   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
73 }
74 static inline smx_actor_t simcall_process_resume__getraw__process(smx_simcall_t simcall)
75 {
76   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
77 }
78 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_actor_t arg)
79 {
80   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
81 }
82
83 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall)
84 {
85   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
86 }
87 static inline smx_actor_t simcall_process_join__getraw__process(smx_simcall_t simcall)
88 {
89   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
90 }
91 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg)
92 {
93   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
94 }
95 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall)
96 {
97   return simgrid::simix::unmarshal<double>(simcall->args[1]);
98 }
99 static inline double simcall_process_join__getraw__timeout(smx_simcall_t simcall)
100 {
101   return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
102 }
103 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg)
104 {
105   simgrid::simix::marshal<double>(simcall->args[1], arg);
106 }
107 static inline int simcall_process_join__get__result(smx_simcall_t simcall)
108 {
109   return simgrid::simix::unmarshal<int>(simcall->result);
110 }
111 static inline int simcall_process_join__getraw__result(smx_simcall_t simcall)
112 {
113   return simgrid::simix::unmarshal_raw<int>(simcall->result);
114 }
115 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
116     simgrid::simix::marshal<int>(simcall->result, result);
117 }
118
119 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall)
120 {
121   return simgrid::simix::unmarshal<double>(simcall->args[0]);
122 }
123 static inline double simcall_process_sleep__getraw__duration(smx_simcall_t simcall)
124 {
125   return simgrid::simix::unmarshal_raw<double>(simcall->args[0]);
126 }
127 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg)
128 {
129   simgrid::simix::marshal<double>(simcall->args[0], arg);
130 }
131 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall)
132 {
133   return simgrid::simix::unmarshal<int>(simcall->result);
134 }
135 static inline int simcall_process_sleep__getraw__result(smx_simcall_t simcall)
136 {
137   return simgrid::simix::unmarshal_raw<int>(simcall->result);
138 }
139 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
140     simgrid::simix::marshal<int>(simcall->result, result);
141 }
142
143 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall)
144 {
145   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
146 }
147 static inline const char* simcall_execution_start__getraw__name(smx_simcall_t simcall)
148 {
149   return simgrid::simix::unmarshal_raw<const char*>(simcall->args[0]);
150 }
151 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg)
152 {
153   simgrid::simix::marshal<const char*>(simcall->args[0], arg);
154 }
155 static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall)
156 {
157   return simgrid::simix::unmarshal<double>(simcall->args[1]);
158 }
159 static inline double simcall_execution_start__getraw__flops_amount(smx_simcall_t simcall)
160 {
161   return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
162 }
163 static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg)
164 {
165   simgrid::simix::marshal<double>(simcall->args[1], arg);
166 }
167 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall)
168 {
169   return simgrid::simix::unmarshal<double>(simcall->args[2]);
170 }
171 static inline double simcall_execution_start__getraw__priority(smx_simcall_t simcall)
172 {
173   return simgrid::simix::unmarshal_raw<double>(simcall->args[2]);
174 }
175 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg)
176 {
177   simgrid::simix::marshal<double>(simcall->args[2], arg);
178 }
179 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall)
180 {
181   return simgrid::simix::unmarshal<double>(simcall->args[3]);
182 }
183 static inline double simcall_execution_start__getraw__bound(smx_simcall_t simcall)
184 {
185   return simgrid::simix::unmarshal_raw<double>(simcall->args[3]);
186 }
187 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg)
188 {
189   simgrid::simix::marshal<double>(simcall->args[3], arg);
190 }
191 static inline boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>
192 simcall_execution_start__get__result(smx_simcall_t simcall)
193 {
194   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>>(simcall->result);
195 }
196 static inline simgrid::kernel::activity::ExecImpl* simcall_execution_start__getraw__result(smx_simcall_t simcall)
197 {
198   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ExecImpl*>(simcall->result);
199 }
200 static inline void
201 simcall_execution_start__set__result(smx_simcall_t simcall,
202                                      boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl> result)
203 {
204   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>>(simcall->result, result);
205 }
206
207 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall)
208 {
209   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
210 }
211 static inline const char* simcall_execution_parallel_start__getraw__name(smx_simcall_t simcall)
212 {
213   return simgrid::simix::unmarshal_raw<const char*>(simcall->args[0]);
214 }
215 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg)
216 {
217   simgrid::simix::marshal<const char*>(simcall->args[0], arg);
218 }
219 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall)
220 {
221   return simgrid::simix::unmarshal<int>(simcall->args[1]);
222 }
223 static inline int simcall_execution_parallel_start__getraw__host_nb(smx_simcall_t simcall)
224 {
225   return simgrid::simix::unmarshal_raw<int>(simcall->args[1]);
226 }
227 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg)
228 {
229   simgrid::simix::marshal<int>(simcall->args[1], arg);
230 }
231 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall)
232 {
233   return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
234 }
235 static inline sg_host_t* simcall_execution_parallel_start__getraw__host_list(smx_simcall_t simcall)
236 {
237   return simgrid::simix::unmarshal_raw<sg_host_t*>(simcall->args[2]);
238 }
239 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg)
240 {
241   simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
242 }
243 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall)
244 {
245   return simgrid::simix::unmarshal<double*>(simcall->args[3]);
246 }
247 static inline double* simcall_execution_parallel_start__getraw__flops_amount(smx_simcall_t simcall)
248 {
249   return simgrid::simix::unmarshal_raw<double*>(simcall->args[3]);
250 }
251 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg)
252 {
253   simgrid::simix::marshal<double*>(simcall->args[3], arg);
254 }
255 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall)
256 {
257   return simgrid::simix::unmarshal<double*>(simcall->args[4]);
258 }
259 static inline double* simcall_execution_parallel_start__getraw__bytes_amount(smx_simcall_t simcall)
260 {
261   return simgrid::simix::unmarshal_raw<double*>(simcall->args[4]);
262 }
263 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg)
264 {
265   simgrid::simix::marshal<double*>(simcall->args[4], arg);
266 }
267 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall)
268 {
269   return simgrid::simix::unmarshal<double>(simcall->args[5]);
270 }
271 static inline double simcall_execution_parallel_start__getraw__amount(smx_simcall_t simcall)
272 {
273   return simgrid::simix::unmarshal_raw<double>(simcall->args[5]);
274 }
275 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg)
276 {
277   simgrid::simix::marshal<double>(simcall->args[5], arg);
278 }
279 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall)
280 {
281   return simgrid::simix::unmarshal<double>(simcall->args[6]);
282 }
283 static inline double simcall_execution_parallel_start__getraw__rate(smx_simcall_t simcall)
284 {
285   return simgrid::simix::unmarshal_raw<double>(simcall->args[6]);
286 }
287 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg)
288 {
289   simgrid::simix::marshal<double>(simcall->args[6], arg);
290 }
291 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall)
292 {
293   return simgrid::simix::unmarshal<double>(simcall->args[7]);
294 }
295 static inline double simcall_execution_parallel_start__getraw__timeout(smx_simcall_t simcall)
296 {
297   return simgrid::simix::unmarshal_raw<double>(simcall->args[7]);
298 }
299 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg)
300 {
301   simgrid::simix::marshal<double>(simcall->args[7], arg);
302 }
303 static inline boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>
304 simcall_execution_parallel_start__get__result(smx_simcall_t simcall)
305 {
306   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>>(simcall->result);
307 }
308 static inline simgrid::kernel::activity::ExecImpl*
309 simcall_execution_parallel_start__getraw__result(smx_simcall_t simcall)
310 {
311   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ExecImpl*>(simcall->result);
312 }
313 static inline void
314 simcall_execution_parallel_start__set__result(smx_simcall_t simcall,
315                                               boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl> result)
316 {
317   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>>(simcall->result, result);
318 }
319
320 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
321 simcall_execution_cancel__get__execution(smx_simcall_t simcall)
322 {
323   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
324 }
325 static inline simgrid::kernel::activity::ActivityImpl*
326 simcall_execution_cancel__getraw__execution(smx_simcall_t simcall)
327 {
328   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
329 }
330 static inline void
331 simcall_execution_cancel__set__execution(smx_simcall_t simcall,
332                                          boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
333 {
334   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
335 }
336
337 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
338 simcall_execution_set_priority__get__execution(smx_simcall_t simcall)
339 {
340   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
341 }
342 static inline simgrid::kernel::activity::ActivityImpl*
343 simcall_execution_set_priority__getraw__execution(smx_simcall_t simcall)
344 {
345   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
346 }
347 static inline void
348 simcall_execution_set_priority__set__execution(smx_simcall_t simcall,
349                                                boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
350 {
351   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
352 }
353 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall)
354 {
355   return simgrid::simix::unmarshal<double>(simcall->args[1]);
356 }
357 static inline double simcall_execution_set_priority__getraw__priority(smx_simcall_t simcall)
358 {
359   return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
360 }
361 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg)
362 {
363   simgrid::simix::marshal<double>(simcall->args[1], arg);
364 }
365
366 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
367 simcall_execution_set_bound__get__execution(smx_simcall_t simcall)
368 {
369   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
370 }
371 static inline simgrid::kernel::activity::ActivityImpl*
372 simcall_execution_set_bound__getraw__execution(smx_simcall_t simcall)
373 {
374   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
375 }
376 static inline void
377 simcall_execution_set_bound__set__execution(smx_simcall_t simcall,
378                                             boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
379 {
380   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
381 }
382 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall)
383 {
384   return simgrid::simix::unmarshal<double>(simcall->args[1]);
385 }
386 static inline double simcall_execution_set_bound__getraw__bound(smx_simcall_t simcall)
387 {
388   return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
389 }
390 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg)
391 {
392   simgrid::simix::marshal<double>(simcall->args[1], arg);
393 }
394
395 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
396 simcall_execution_wait__get__execution(smx_simcall_t simcall)
397 {
398   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
399 }
400 static inline simgrid::kernel::activity::ActivityImpl* simcall_execution_wait__getraw__execution(smx_simcall_t simcall)
401 {
402   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
403 }
404 static inline void
405 simcall_execution_wait__set__execution(smx_simcall_t simcall,
406                                        boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
407 {
408   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
409 }
410 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall)
411 {
412   return simgrid::simix::unmarshal<int>(simcall->result);
413 }
414 static inline int simcall_execution_wait__getraw__result(smx_simcall_t simcall)
415 {
416   return simgrid::simix::unmarshal_raw<int>(simcall->result);
417 }
418 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
419     simgrid::simix::marshal<int>(simcall->result, result);
420 }
421
422 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall)
423 {
424   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
425 }
426 static inline smx_actor_t simcall_process_on_exit__getraw__process(smx_simcall_t simcall)
427 {
428   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
429 }
430 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg)
431 {
432   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
433 }
434 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall)
435 {
436   return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
437 }
438 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__getraw__fun(smx_simcall_t simcall)
439 {
440   return simgrid::simix::unmarshal_raw<int_f_pvoid_pvoid_t>(simcall->args[1]);
441 }
442 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg)
443 {
444   simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
445 }
446 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall)
447 {
448   return simgrid::simix::unmarshal<void*>(simcall->args[2]);
449 }
450 static inline void* simcall_process_on_exit__getraw__data(smx_simcall_t simcall)
451 {
452   return simgrid::simix::unmarshal_raw<void*>(simcall->args[2]);
453 }
454 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg)
455 {
456   simgrid::simix::marshal<void*>(simcall->args[2], arg);
457 }
458
459 static inline smx_actor_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall)
460 {
461   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
462 }
463 static inline smx_actor_t simcall_process_auto_restart_set__getraw__process(smx_simcall_t simcall)
464 {
465   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
466 }
467 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_actor_t arg)
468 {
469   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
470 }
471 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall)
472 {
473   return simgrid::simix::unmarshal<int>(simcall->args[1]);
474 }
475 static inline int simcall_process_auto_restart_set__getraw__auto_restart(smx_simcall_t simcall)
476 {
477   return simgrid::simix::unmarshal_raw<int>(simcall->args[1]);
478 }
479 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg)
480 {
481   simgrid::simix::marshal<int>(simcall->args[1], arg);
482 }
483
484 static inline smx_actor_t simcall_process_restart__get__process(smx_simcall_t simcall)
485 {
486   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
487 }
488 static inline smx_actor_t simcall_process_restart__getraw__process(smx_simcall_t simcall)
489 {
490   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
491 }
492 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_actor_t arg)
493 {
494   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
495 }
496 static inline smx_actor_t simcall_process_restart__get__result(smx_simcall_t simcall)
497 {
498   return simgrid::simix::unmarshal<smx_actor_t>(simcall->result);
499 }
500 static inline smx_actor_t simcall_process_restart__getraw__result(smx_simcall_t simcall)
501 {
502   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->result);
503 }
504 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_actor_t result){
505     simgrid::simix::marshal<smx_actor_t>(simcall->result, result);
506 }
507
508 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall)
509 {
510   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
511 }
512 static inline smx_mailbox_t simcall_comm_iprobe__getraw__mbox(smx_simcall_t simcall)
513 {
514   return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[0]);
515 }
516 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
517 {
518   simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
519 }
520 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall)
521 {
522   return simgrid::simix::unmarshal<int>(simcall->args[1]);
523 }
524 static inline int simcall_comm_iprobe__getraw__type(smx_simcall_t simcall)
525 {
526   return simgrid::simix::unmarshal_raw<int>(simcall->args[1]);
527 }
528 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg)
529 {
530   simgrid::simix::marshal<int>(simcall->args[1], arg);
531 }
532 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall)
533 {
534   return simgrid::simix::unmarshal<int>(simcall->args[2]);
535 }
536 static inline int simcall_comm_iprobe__getraw__src(smx_simcall_t simcall)
537 {
538   return simgrid::simix::unmarshal_raw<int>(simcall->args[2]);
539 }
540 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg)
541 {
542   simgrid::simix::marshal<int>(simcall->args[2], arg);
543 }
544 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall)
545 {
546   return simgrid::simix::unmarshal<int>(simcall->args[3]);
547 }
548 static inline int simcall_comm_iprobe__getraw__tag(smx_simcall_t simcall)
549 {
550   return simgrid::simix::unmarshal_raw<int>(simcall->args[3]);
551 }
552 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg)
553 {
554   simgrid::simix::marshal<int>(simcall->args[3], arg);
555 }
556 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall)
557 {
558   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
559 }
560 static inline simix_match_func_t simcall_comm_iprobe__getraw__match_fun(smx_simcall_t simcall)
561 {
562   return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[4]);
563 }
564 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
565 {
566   simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
567 }
568 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall)
569 {
570   return simgrid::simix::unmarshal<void*>(simcall->args[5]);
571 }
572 static inline void* simcall_comm_iprobe__getraw__data(smx_simcall_t simcall)
573 {
574   return simgrid::simix::unmarshal_raw<void*>(simcall->args[5]);
575 }
576 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg)
577 {
578   simgrid::simix::marshal<void*>(simcall->args[5], arg);
579 }
580 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
581 simcall_comm_iprobe__get__result(smx_simcall_t simcall)
582 {
583   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result);
584 }
585 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_iprobe__getraw__result(smx_simcall_t simcall)
586 {
587   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->result);
588 }
589 static inline void
590 simcall_comm_iprobe__set__result(smx_simcall_t simcall,
591                                  boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> result)
592 {
593   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result, result);
594 }
595
596 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall)
597 {
598   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
599 }
600 static inline smx_actor_t simcall_comm_send__getraw__sender(smx_simcall_t simcall)
601 {
602   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
603 }
604 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg)
605 {
606   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
607 }
608 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall)
609 {
610   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
611 }
612 static inline smx_mailbox_t simcall_comm_send__getraw__mbox(smx_simcall_t simcall)
613 {
614   return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[1]);
615 }
616 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
617 {
618   simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
619 }
620 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall)
621 {
622   return simgrid::simix::unmarshal<double>(simcall->args[2]);
623 }
624 static inline double simcall_comm_send__getraw__task_size(smx_simcall_t simcall)
625 {
626   return simgrid::simix::unmarshal_raw<double>(simcall->args[2]);
627 }
628 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg)
629 {
630   simgrid::simix::marshal<double>(simcall->args[2], arg);
631 }
632 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall)
633 {
634   return simgrid::simix::unmarshal<double>(simcall->args[3]);
635 }
636 static inline double simcall_comm_send__getraw__rate(smx_simcall_t simcall)
637 {
638   return simgrid::simix::unmarshal_raw<double>(simcall->args[3]);
639 }
640 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg)
641 {
642   simgrid::simix::marshal<double>(simcall->args[3], arg);
643 }
644 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall)
645 {
646   return simgrid::simix::unmarshal<void*>(simcall->args[4]);
647 }
648 static inline void* simcall_comm_send__getraw__src_buff(smx_simcall_t simcall)
649 {
650   return simgrid::simix::unmarshal_raw<void*>(simcall->args[4]);
651 }
652 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg)
653 {
654   simgrid::simix::marshal<void*>(simcall->args[4], arg);
655 }
656 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall)
657 {
658   return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
659 }
660 static inline size_t simcall_comm_send__getraw__src_buff_size(smx_simcall_t simcall)
661 {
662   return simgrid::simix::unmarshal_raw<size_t>(simcall->args[5]);
663 }
664 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg)
665 {
666   simgrid::simix::marshal<size_t>(simcall->args[5], arg);
667 }
668 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall)
669 {
670   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
671 }
672 static inline simix_match_func_t simcall_comm_send__getraw__match_fun(smx_simcall_t simcall)
673 {
674   return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[6]);
675 }
676 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
677 {
678   simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
679 }
680 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall)
681 {
682   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
683 }
684 static inline simix_copy_data_func_t simcall_comm_send__getraw__copy_data_fun(smx_simcall_t simcall)
685 {
686   return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args[7]);
687 }
688 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
689 {
690   simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
691 }
692 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall)
693 {
694   return simgrid::simix::unmarshal<void*>(simcall->args[8]);
695 }
696 static inline void* simcall_comm_send__getraw__data(smx_simcall_t simcall)
697 {
698   return simgrid::simix::unmarshal_raw<void*>(simcall->args[8]);
699 }
700 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg)
701 {
702   simgrid::simix::marshal<void*>(simcall->args[8], arg);
703 }
704 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall)
705 {
706   return simgrid::simix::unmarshal<double>(simcall->args[9]);
707 }
708 static inline double simcall_comm_send__getraw__timeout(smx_simcall_t simcall)
709 {
710   return simgrid::simix::unmarshal_raw<double>(simcall->args[9]);
711 }
712 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg)
713 {
714   simgrid::simix::marshal<double>(simcall->args[9], arg);
715 }
716
717 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall)
718 {
719   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
720 }
721 static inline smx_actor_t simcall_comm_isend__getraw__sender(smx_simcall_t simcall)
722 {
723   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
724 }
725 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg)
726 {
727   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
728 }
729 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall)
730 {
731   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
732 }
733 static inline smx_mailbox_t simcall_comm_isend__getraw__mbox(smx_simcall_t simcall)
734 {
735   return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[1]);
736 }
737 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
738 {
739   simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
740 }
741 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall)
742 {
743   return simgrid::simix::unmarshal<double>(simcall->args[2]);
744 }
745 static inline double simcall_comm_isend__getraw__task_size(smx_simcall_t simcall)
746 {
747   return simgrid::simix::unmarshal_raw<double>(simcall->args[2]);
748 }
749 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg)
750 {
751   simgrid::simix::marshal<double>(simcall->args[2], arg);
752 }
753 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall)
754 {
755   return simgrid::simix::unmarshal<double>(simcall->args[3]);
756 }
757 static inline double simcall_comm_isend__getraw__rate(smx_simcall_t simcall)
758 {
759   return simgrid::simix::unmarshal_raw<double>(simcall->args[3]);
760 }
761 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg)
762 {
763   simgrid::simix::marshal<double>(simcall->args[3], arg);
764 }
765 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall)
766 {
767   return simgrid::simix::unmarshal<void*>(simcall->args[4]);
768 }
769 static inline void* simcall_comm_isend__getraw__src_buff(smx_simcall_t simcall)
770 {
771   return simgrid::simix::unmarshal_raw<void*>(simcall->args[4]);
772 }
773 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg)
774 {
775   simgrid::simix::marshal<void*>(simcall->args[4], arg);
776 }
777 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall)
778 {
779   return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
780 }
781 static inline size_t simcall_comm_isend__getraw__src_buff_size(smx_simcall_t simcall)
782 {
783   return simgrid::simix::unmarshal_raw<size_t>(simcall->args[5]);
784 }
785 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg)
786 {
787   simgrid::simix::marshal<size_t>(simcall->args[5], arg);
788 }
789 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall)
790 {
791   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
792 }
793 static inline simix_match_func_t simcall_comm_isend__getraw__match_fun(smx_simcall_t simcall)
794 {
795   return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[6]);
796 }
797 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
798 {
799   simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
800 }
801 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall)
802 {
803   return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
804 }
805 static inline simix_clean_func_t simcall_comm_isend__getraw__clean_fun(smx_simcall_t simcall)
806 {
807   return simgrid::simix::unmarshal_raw<simix_clean_func_t>(simcall->args[7]);
808 }
809 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg)
810 {
811   simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
812 }
813 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall)
814 {
815   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
816 }
817 static inline simix_copy_data_func_t simcall_comm_isend__getraw__copy_data_fun(smx_simcall_t simcall)
818 {
819   return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args[8]);
820 }
821 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
822 {
823   simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
824 }
825 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall)
826 {
827   return simgrid::simix::unmarshal<void*>(simcall->args[9]);
828 }
829 static inline void* simcall_comm_isend__getraw__data(smx_simcall_t simcall)
830 {
831   return simgrid::simix::unmarshal_raw<void*>(simcall->args[9]);
832 }
833 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg)
834 {
835   simgrid::simix::marshal<void*>(simcall->args[9], arg);
836 }
837 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall)
838 {
839   return simgrid::simix::unmarshal<int>(simcall->args[10]);
840 }
841 static inline int simcall_comm_isend__getraw__detached(smx_simcall_t simcall)
842 {
843   return simgrid::simix::unmarshal_raw<int>(simcall->args[10]);
844 }
845 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg)
846 {
847   simgrid::simix::marshal<int>(simcall->args[10], arg);
848 }
849 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
850 simcall_comm_isend__get__result(smx_simcall_t simcall)
851 {
852   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result);
853 }
854 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_isend__getraw__result(smx_simcall_t simcall)
855 {
856   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->result);
857 }
858 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall,
859                                                    boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> result)
860 {
861   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result, result);
862 }
863
864 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall)
865 {
866   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
867 }
868 static inline smx_actor_t simcall_comm_recv__getraw__receiver(smx_simcall_t simcall)
869 {
870   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
871 }
872 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg)
873 {
874   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
875 }
876 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall)
877 {
878   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
879 }
880 static inline smx_mailbox_t simcall_comm_recv__getraw__mbox(smx_simcall_t simcall)
881 {
882   return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[1]);
883 }
884 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
885 {
886   simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
887 }
888 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall)
889 {
890   return simgrid::simix::unmarshal<void*>(simcall->args[2]);
891 }
892 static inline void* simcall_comm_recv__getraw__dst_buff(smx_simcall_t simcall)
893 {
894   return simgrid::simix::unmarshal_raw<void*>(simcall->args[2]);
895 }
896 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg)
897 {
898   simgrid::simix::marshal<void*>(simcall->args[2], arg);
899 }
900 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall)
901 {
902   return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
903 }
904 static inline size_t* simcall_comm_recv__getraw__dst_buff_size(smx_simcall_t simcall)
905 {
906   return simgrid::simix::unmarshal_raw<size_t*>(simcall->args[3]);
907 }
908 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg)
909 {
910   simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
911 }
912 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall)
913 {
914   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
915 }
916 static inline simix_match_func_t simcall_comm_recv__getraw__match_fun(smx_simcall_t simcall)
917 {
918   return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[4]);
919 }
920 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
921 {
922   simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
923 }
924 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall)
925 {
926   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
927 }
928 static inline simix_copy_data_func_t simcall_comm_recv__getraw__copy_data_fun(smx_simcall_t simcall)
929 {
930   return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args[5]);
931 }
932 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
933 {
934   simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
935 }
936 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall)
937 {
938   return simgrid::simix::unmarshal<void*>(simcall->args[6]);
939 }
940 static inline void* simcall_comm_recv__getraw__data(smx_simcall_t simcall)
941 {
942   return simgrid::simix::unmarshal_raw<void*>(simcall->args[6]);
943 }
944 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg)
945 {
946   simgrid::simix::marshal<void*>(simcall->args[6], arg);
947 }
948 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall)
949 {
950   return simgrid::simix::unmarshal<double>(simcall->args[7]);
951 }
952 static inline double simcall_comm_recv__getraw__timeout(smx_simcall_t simcall)
953 {
954   return simgrid::simix::unmarshal_raw<double>(simcall->args[7]);
955 }
956 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg)
957 {
958   simgrid::simix::marshal<double>(simcall->args[7], arg);
959 }
960 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall)
961 {
962   return simgrid::simix::unmarshal<double>(simcall->args[8]);
963 }
964 static inline double simcall_comm_recv__getraw__rate(smx_simcall_t simcall)
965 {
966   return simgrid::simix::unmarshal_raw<double>(simcall->args[8]);
967 }
968 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg)
969 {
970   simgrid::simix::marshal<double>(simcall->args[8], arg);
971 }
972
973 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall)
974 {
975   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
976 }
977 static inline smx_actor_t simcall_comm_irecv__getraw__receiver(smx_simcall_t simcall)
978 {
979   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
980 }
981 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg)
982 {
983   simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
984 }
985 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall)
986 {
987   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
988 }
989 static inline smx_mailbox_t simcall_comm_irecv__getraw__mbox(smx_simcall_t simcall)
990 {
991   return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[1]);
992 }
993 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
994 {
995   simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
996 }
997 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall)
998 {
999   return simgrid::simix::unmarshal<void*>(simcall->args[2]);
1000 }
1001 static inline void* simcall_comm_irecv__getraw__dst_buff(smx_simcall_t simcall)
1002 {
1003   return simgrid::simix::unmarshal_raw<void*>(simcall->args[2]);
1004 }
1005 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg)
1006 {
1007   simgrid::simix::marshal<void*>(simcall->args[2], arg);
1008 }
1009 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall)
1010 {
1011   return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
1012 }
1013 static inline size_t* simcall_comm_irecv__getraw__dst_buff_size(smx_simcall_t simcall)
1014 {
1015   return simgrid::simix::unmarshal_raw<size_t*>(simcall->args[3]);
1016 }
1017 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg)
1018 {
1019   simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
1020 }
1021 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall)
1022 {
1023   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
1024 }
1025 static inline simix_match_func_t simcall_comm_irecv__getraw__match_fun(smx_simcall_t simcall)
1026 {
1027   return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[4]);
1028 }
1029 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
1030 {
1031   simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
1032 }
1033 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall)
1034 {
1035   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
1036 }
1037 static inline simix_copy_data_func_t simcall_comm_irecv__getraw__copy_data_fun(smx_simcall_t simcall)
1038 {
1039   return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args[5]);
1040 }
1041 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
1042 {
1043   simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
1044 }
1045 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall)
1046 {
1047   return simgrid::simix::unmarshal<void*>(simcall->args[6]);
1048 }
1049 static inline void* simcall_comm_irecv__getraw__data(smx_simcall_t simcall)
1050 {
1051   return simgrid::simix::unmarshal_raw<void*>(simcall->args[6]);
1052 }
1053 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg)
1054 {
1055   simgrid::simix::marshal<void*>(simcall->args[6], arg);
1056 }
1057 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall)
1058 {
1059   return simgrid::simix::unmarshal<double>(simcall->args[7]);
1060 }
1061 static inline double simcall_comm_irecv__getraw__rate(smx_simcall_t simcall)
1062 {
1063   return simgrid::simix::unmarshal_raw<double>(simcall->args[7]);
1064 }
1065 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg)
1066 {
1067   simgrid::simix::marshal<double>(simcall->args[7], arg);
1068 }
1069 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1070 simcall_comm_irecv__get__result(smx_simcall_t simcall)
1071 {
1072   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result);
1073 }
1074 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_irecv__getraw__result(smx_simcall_t simcall)
1075 {
1076   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->result);
1077 }
1078 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall,
1079                                                    boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> result)
1080 {
1081   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result, result);
1082 }
1083
1084 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall)
1085 {
1086   return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
1087 }
1088 static inline xbt_dynar_t simcall_comm_waitany__getraw__comms(smx_simcall_t simcall)
1089 {
1090   return simgrid::simix::unmarshal_raw<xbt_dynar_t>(simcall->args[0]);
1091 }
1092 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg)
1093 {
1094   simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
1095 }
1096 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall)
1097 {
1098   return simgrid::simix::unmarshal<double>(simcall->args[1]);
1099 }
1100 static inline double simcall_comm_waitany__getraw__timeout(smx_simcall_t simcall)
1101 {
1102   return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
1103 }
1104 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg)
1105 {
1106   simgrid::simix::marshal<double>(simcall->args[1], arg);
1107 }
1108 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall)
1109 {
1110   return simgrid::simix::unmarshal<int>(simcall->result);
1111 }
1112 static inline int simcall_comm_waitany__getraw__result(smx_simcall_t simcall)
1113 {
1114   return simgrid::simix::unmarshal_raw<int>(simcall->result);
1115 }
1116 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
1117     simgrid::simix::marshal<int>(simcall->result, result);
1118 }
1119
1120 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1121 simcall_comm_wait__get__comm(smx_simcall_t simcall)
1122 {
1123   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
1124 }
1125 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_wait__getraw__comm(smx_simcall_t simcall)
1126 {
1127   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
1128 }
1129 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall,
1130                                                 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
1131 {
1132   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
1133 }
1134 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall)
1135 {
1136   return simgrid::simix::unmarshal<double>(simcall->args[1]);
1137 }
1138 static inline double simcall_comm_wait__getraw__timeout(smx_simcall_t simcall)
1139 {
1140   return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
1141 }
1142 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg)
1143 {
1144   simgrid::simix::marshal<double>(simcall->args[1], arg);
1145 }
1146
1147 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1148 simcall_comm_test__get__comm(smx_simcall_t simcall)
1149 {
1150   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
1151 }
1152 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_test__getraw__comm(smx_simcall_t simcall)
1153 {
1154   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
1155 }
1156 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall,
1157                                                 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
1158 {
1159   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
1160 }
1161 static inline int simcall_comm_test__get__result(smx_simcall_t simcall)
1162 {
1163   return simgrid::simix::unmarshal<int>(simcall->result);
1164 }
1165 static inline int simcall_comm_test__getraw__result(smx_simcall_t simcall)
1166 {
1167   return simgrid::simix::unmarshal_raw<int>(simcall->result);
1168 }
1169 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
1170     simgrid::simix::marshal<int>(simcall->result, result);
1171 }
1172
1173 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>*
1174 simcall_comm_testany__get__comms(smx_simcall_t simcall)
1175 {
1176   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>*>(simcall->args[0]);
1177 }
1178 static inline simgrid::kernel::activity::ActivityImpl** simcall_comm_testany__getraw__comms(smx_simcall_t simcall)
1179 {
1180   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl**>(simcall->args[0]);
1181 }
1182 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall,
1183                                                     boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>* arg)
1184 {
1185   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>*>(simcall->args[0], arg);
1186 }
1187 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall)
1188 {
1189   return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
1190 }
1191 static inline size_t simcall_comm_testany__getraw__count(smx_simcall_t simcall)
1192 {
1193   return simgrid::simix::unmarshal_raw<size_t>(simcall->args[1]);
1194 }
1195 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg)
1196 {
1197   simgrid::simix::marshal<size_t>(simcall->args[1], arg);
1198 }
1199 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall)
1200 {
1201   return simgrid::simix::unmarshal<int>(simcall->result);
1202 }
1203 static inline int simcall_comm_testany__getraw__result(smx_simcall_t simcall)
1204 {
1205   return simgrid::simix::unmarshal_raw<int>(simcall->result);
1206 }
1207 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
1208     simgrid::simix::marshal<int>(simcall->result, result);
1209 }
1210
1211 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall)
1212 {
1213   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
1214 }
1215 static inline smx_mutex_t simcall_mutex_init__getraw__result(smx_simcall_t simcall)
1216 {
1217   return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->result);
1218 }
1219 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
1220     simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
1221 }
1222
1223 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall)
1224 {
1225   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
1226 }
1227 static inline smx_mutex_t simcall_mutex_lock__getraw__mutex(smx_simcall_t simcall)
1228 {
1229   return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[0]);
1230 }
1231 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1232 {
1233   simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
1234 }
1235
1236 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall)
1237 {
1238   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
1239 }
1240 static inline smx_mutex_t simcall_mutex_trylock__getraw__mutex(smx_simcall_t simcall)
1241 {
1242   return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[0]);
1243 }
1244 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1245 {
1246   simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
1247 }
1248 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall)
1249 {
1250   return simgrid::simix::unmarshal<int>(simcall->result);
1251 }
1252 static inline int simcall_mutex_trylock__getraw__result(smx_simcall_t simcall)
1253 {
1254   return simgrid::simix::unmarshal_raw<int>(simcall->result);
1255 }
1256 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
1257     simgrid::simix::marshal<int>(simcall->result, result);
1258 }
1259
1260 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall)
1261 {
1262   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
1263 }
1264 static inline smx_mutex_t simcall_mutex_unlock__getraw__mutex(smx_simcall_t simcall)
1265 {
1266   return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[0]);
1267 }
1268 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1269 {
1270   simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
1271 }
1272
1273 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall)
1274 {
1275   return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
1276 }
1277 static inline smx_cond_t simcall_cond_init__getraw__result(smx_simcall_t simcall)
1278 {
1279   return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->result);
1280 }
1281 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
1282     simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
1283 }
1284
1285 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall)
1286 {
1287   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
1288 }
1289 static inline smx_cond_t simcall_cond_signal__getraw__cond(smx_simcall_t simcall)
1290 {
1291   return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->args[0]);
1292 }
1293 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg)
1294 {
1295   simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
1296 }
1297
1298 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall)
1299 {
1300   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
1301 }
1302 static inline smx_cond_t simcall_cond_wait__getraw__cond(smx_simcall_t simcall)
1303 {
1304   return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->args[0]);
1305 }
1306 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg)
1307 {
1308   simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
1309 }
1310 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall)
1311 {
1312   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
1313 }
1314 static inline smx_mutex_t simcall_cond_wait__getraw__mutex(smx_simcall_t simcall)
1315 {
1316   return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[1]);
1317 }
1318 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1319 {
1320   simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
1321 }
1322
1323 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall)
1324 {
1325   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
1326 }
1327 static inline smx_cond_t simcall_cond_wait_timeout__getraw__cond(smx_simcall_t simcall)
1328 {
1329   return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->args[0]);
1330 }
1331 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg)
1332 {
1333   simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
1334 }
1335 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall)
1336 {
1337   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
1338 }
1339 static inline smx_mutex_t simcall_cond_wait_timeout__getraw__mutex(smx_simcall_t simcall)
1340 {
1341   return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[1]);
1342 }
1343 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1344 {
1345   simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
1346 }
1347 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall)
1348 {
1349   return simgrid::simix::unmarshal<double>(simcall->args[2]);
1350 }
1351 static inline double simcall_cond_wait_timeout__getraw__timeout(smx_simcall_t simcall)
1352 {
1353   return simgrid::simix::unmarshal_raw<double>(simcall->args[2]);
1354 }
1355 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg)
1356 {
1357   simgrid::simix::marshal<double>(simcall->args[2], arg);
1358 }
1359
1360 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall)
1361 {
1362   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
1363 }
1364 static inline smx_cond_t simcall_cond_broadcast__getraw__cond(smx_simcall_t simcall)
1365 {
1366   return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->args[0]);
1367 }
1368 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg)
1369 {
1370   simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
1371 }
1372
1373 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall)
1374 {
1375   return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
1376 }
1377 static inline unsigned int simcall_sem_init__getraw__capacity(smx_simcall_t simcall)
1378 {
1379   return simgrid::simix::unmarshal_raw<unsigned int>(simcall->args[0]);
1380 }
1381 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg)
1382 {
1383   simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
1384 }
1385 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall)
1386 {
1387   return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
1388 }
1389 static inline smx_sem_t simcall_sem_init__getraw__result(smx_simcall_t simcall)
1390 {
1391   return simgrid::simix::unmarshal_raw<smx_sem_t>(simcall->result);
1392 }
1393 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
1394     simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
1395 }
1396
1397 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall)
1398 {
1399   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
1400 }
1401 static inline smx_sem_t simcall_sem_release__getraw__sem(smx_simcall_t simcall)
1402 {
1403   return simgrid::simix::unmarshal_raw<smx_sem_t>(simcall->args[0]);
1404 }
1405 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg)
1406 {
1407   simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
1408 }
1409
1410 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall)
1411 {
1412   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
1413 }
1414 static inline smx_sem_t simcall_sem_would_block__getraw__sem(smx_simcall_t simcall)
1415 {
1416   return simgrid::simix::unmarshal_raw<smx_sem_t>(simcall->args[0]);
1417 }
1418 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg)
1419 {
1420   simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
1421 }
1422 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall)
1423 {
1424   return simgrid::simix::unmarshal<int>(simcall->result);
1425 }
1426 static inline int simcall_sem_would_block__getraw__result(smx_simcall_t simcall)
1427 {
1428   return simgrid::simix::unmarshal_raw<int>(simcall->result);
1429 }
1430 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
1431     simgrid::simix::marshal<int>(simcall->result, result);
1432 }
1433
1434 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall)
1435 {
1436   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
1437 }
1438 static inline smx_sem_t simcall_sem_acquire__getraw__sem(smx_simcall_t simcall)
1439 {
1440   return simgrid::simix::unmarshal_raw<smx_sem_t>(simcall->args[0]);
1441 }
1442 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg)
1443 {
1444   simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
1445 }
1446
1447 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall)
1448 {
1449   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
1450 }
1451 static inline smx_sem_t simcall_sem_acquire_timeout__getraw__sem(smx_simcall_t simcall)
1452 {
1453   return simgrid::simix::unmarshal_raw<smx_sem_t>(simcall->args[0]);
1454 }
1455 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg)
1456 {
1457   simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
1458 }
1459 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall)
1460 {
1461   return simgrid::simix::unmarshal<double>(simcall->args[1]);
1462 }
1463 static inline double simcall_sem_acquire_timeout__getraw__timeout(smx_simcall_t simcall)
1464 {
1465   return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
1466 }
1467 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg)
1468 {
1469   simgrid::simix::marshal<double>(simcall->args[1], arg);
1470 }
1471
1472 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall)
1473 {
1474   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
1475 }
1476 static inline smx_sem_t simcall_sem_get_capacity__getraw__sem(smx_simcall_t simcall)
1477 {
1478   return simgrid::simix::unmarshal_raw<smx_sem_t>(simcall->args[0]);
1479 }
1480 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg)
1481 {
1482   simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
1483 }
1484 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall)
1485 {
1486   return simgrid::simix::unmarshal<int>(simcall->result);
1487 }
1488 static inline int simcall_sem_get_capacity__getraw__result(smx_simcall_t simcall)
1489 {
1490   return simgrid::simix::unmarshal_raw<int>(simcall->result);
1491 }
1492 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
1493     simgrid::simix::marshal<int>(simcall->result, result);
1494 }
1495
1496 static inline surf_file_t simcall_file_read__get__fd(smx_simcall_t simcall)
1497 {
1498   return simgrid::simix::unmarshal<surf_file_t>(simcall->args[0]);
1499 }
1500 static inline surf_file_t simcall_file_read__getraw__fd(smx_simcall_t simcall)
1501 {
1502   return simgrid::simix::unmarshal_raw<surf_file_t>(simcall->args[0]);
1503 }
1504 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, surf_file_t arg)
1505 {
1506   simgrid::simix::marshal<surf_file_t>(simcall->args[0], arg);
1507 }
1508 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall)
1509 {
1510   return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
1511 }
1512 static inline sg_size_t simcall_file_read__getraw__size(smx_simcall_t simcall)
1513 {
1514   return simgrid::simix::unmarshal_raw<sg_size_t>(simcall->args[1]);
1515 }
1516 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg)
1517 {
1518   simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
1519 }
1520 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall)
1521 {
1522   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
1523 }
1524 static inline sg_host_t simcall_file_read__getraw__host(smx_simcall_t simcall)
1525 {
1526   return simgrid::simix::unmarshal_raw<sg_host_t>(simcall->args[2]);
1527 }
1528 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg)
1529 {
1530   simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
1531 }
1532 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall)
1533 {
1534   return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1535 }
1536 static inline sg_size_t simcall_file_read__getraw__result(smx_simcall_t simcall)
1537 {
1538   return simgrid::simix::unmarshal_raw<sg_size_t>(simcall->result);
1539 }
1540 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
1541     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1542 }
1543
1544 static inline surf_file_t simcall_file_write__get__fd(smx_simcall_t simcall)
1545 {
1546   return simgrid::simix::unmarshal<surf_file_t>(simcall->args[0]);
1547 }
1548 static inline surf_file_t simcall_file_write__getraw__fd(smx_simcall_t simcall)
1549 {
1550   return simgrid::simix::unmarshal_raw<surf_file_t>(simcall->args[0]);
1551 }
1552 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, surf_file_t arg)
1553 {
1554   simgrid::simix::marshal<surf_file_t>(simcall->args[0], arg);
1555 }
1556 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall)
1557 {
1558   return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
1559 }
1560 static inline sg_size_t simcall_file_write__getraw__size(smx_simcall_t simcall)
1561 {
1562   return simgrid::simix::unmarshal_raw<sg_size_t>(simcall->args[1]);
1563 }
1564 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg)
1565 {
1566   simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
1567 }
1568 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall)
1569 {
1570   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
1571 }
1572 static inline sg_host_t simcall_file_write__getraw__host(smx_simcall_t simcall)
1573 {
1574   return simgrid::simix::unmarshal_raw<sg_host_t>(simcall->args[2]);
1575 }
1576 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg)
1577 {
1578   simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
1579 }
1580 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall)
1581 {
1582   return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1583 }
1584 static inline sg_size_t simcall_file_write__getraw__result(smx_simcall_t simcall)
1585 {
1586   return simgrid::simix::unmarshal_raw<sg_size_t>(simcall->result);
1587 }
1588 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
1589     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1590 }
1591
1592 static inline const char* simcall_file_open__get__mount(smx_simcall_t simcall)
1593 {
1594   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
1595 }
1596 static inline const char* simcall_file_open__getraw__mount(smx_simcall_t simcall)
1597 {
1598   return simgrid::simix::unmarshal_raw<const char*>(simcall->args[0]);
1599 }
1600 static inline void simcall_file_open__set__mount(smx_simcall_t simcall, const char* arg)
1601 {
1602   simgrid::simix::marshal<const char*>(simcall->args[0], arg);
1603 }
1604 static inline const char* simcall_file_open__get__path(smx_simcall_t simcall)
1605 {
1606   return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1607 }
1608 static inline const char* simcall_file_open__getraw__path(smx_simcall_t simcall)
1609 {
1610   return simgrid::simix::unmarshal_raw<const char*>(simcall->args[1]);
1611 }
1612 static inline void simcall_file_open__set__path(smx_simcall_t simcall, const char* arg)
1613 {
1614   simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1615 }
1616 static inline sg_storage_t simcall_file_open__get__st(smx_simcall_t simcall)
1617 {
1618   return simgrid::simix::unmarshal<sg_storage_t>(simcall->args[2]);
1619 }
1620 static inline sg_storage_t simcall_file_open__getraw__st(smx_simcall_t simcall)
1621 {
1622   return simgrid::simix::unmarshal_raw<sg_storage_t>(simcall->args[2]);
1623 }
1624 static inline void simcall_file_open__set__st(smx_simcall_t simcall, sg_storage_t arg)
1625 {
1626   simgrid::simix::marshal<sg_storage_t>(simcall->args[2], arg);
1627 }
1628 static inline surf_file_t simcall_file_open__get__result(smx_simcall_t simcall)
1629 {
1630   return simgrid::simix::unmarshal<surf_file_t>(simcall->result);
1631 }
1632 static inline surf_file_t simcall_file_open__getraw__result(smx_simcall_t simcall)
1633 {
1634   return simgrid::simix::unmarshal_raw<surf_file_t>(simcall->result);
1635 }
1636 static inline void simcall_file_open__set__result(smx_simcall_t simcall, surf_file_t result)
1637 {
1638   simgrid::simix::marshal<surf_file_t>(simcall->result, result);
1639 }
1640
1641 static inline surf_file_t simcall_file_close__get__fd(smx_simcall_t simcall)
1642 {
1643   return simgrid::simix::unmarshal<surf_file_t>(simcall->args[0]);
1644 }
1645 static inline surf_file_t simcall_file_close__getraw__fd(smx_simcall_t simcall)
1646 {
1647   return simgrid::simix::unmarshal_raw<surf_file_t>(simcall->args[0]);
1648 }
1649 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, surf_file_t arg)
1650 {
1651   simgrid::simix::marshal<surf_file_t>(simcall->args[0], arg);
1652 }
1653 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall)
1654 {
1655   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
1656 }
1657 static inline sg_host_t simcall_file_close__getraw__host(smx_simcall_t simcall)
1658 {
1659   return simgrid::simix::unmarshal_raw<sg_host_t>(simcall->args[1]);
1660 }
1661 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg)
1662 {
1663   simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
1664 }
1665 static inline int simcall_file_close__get__result(smx_simcall_t simcall)
1666 {
1667   return simgrid::simix::unmarshal<int>(simcall->result);
1668 }
1669 static inline int simcall_file_close__getraw__result(smx_simcall_t simcall)
1670 {
1671   return simgrid::simix::unmarshal_raw<int>(simcall->result);
1672 }
1673 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
1674     simgrid::simix::marshal<int>(simcall->result, result);
1675 }
1676
1677 static inline int simcall_mc_random__get__min(smx_simcall_t simcall)
1678 {
1679   return simgrid::simix::unmarshal<int>(simcall->args[0]);
1680 }
1681 static inline int simcall_mc_random__getraw__min(smx_simcall_t simcall)
1682 {
1683   return simgrid::simix::unmarshal_raw<int>(simcall->args[0]);
1684 }
1685 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg)
1686 {
1687   simgrid::simix::marshal<int>(simcall->args[0], arg);
1688 }
1689 static inline int simcall_mc_random__get__max(smx_simcall_t simcall)
1690 {
1691   return simgrid::simix::unmarshal<int>(simcall->args[1]);
1692 }
1693 static inline int simcall_mc_random__getraw__max(smx_simcall_t simcall)
1694 {
1695   return simgrid::simix::unmarshal_raw<int>(simcall->args[1]);
1696 }
1697 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg)
1698 {
1699   simgrid::simix::marshal<int>(simcall->args[1], arg);
1700 }
1701 static inline int simcall_mc_random__get__result(smx_simcall_t simcall)
1702 {
1703   return simgrid::simix::unmarshal<int>(simcall->result);
1704 }
1705 static inline int simcall_mc_random__getraw__result(smx_simcall_t simcall)
1706 {
1707   return simgrid::simix::unmarshal_raw<int>(simcall->result);
1708 }
1709 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1710     simgrid::simix::marshal<int>(simcall->result, result);
1711 }
1712
1713 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1714 simcall_set_category__get__synchro(smx_simcall_t simcall)
1715 {
1716   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
1717 }
1718 static inline simgrid::kernel::activity::ActivityImpl* simcall_set_category__getraw__synchro(smx_simcall_t simcall)
1719 {
1720   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
1721 }
1722 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall,
1723                                                       boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
1724 {
1725   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
1726 }
1727 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall)
1728 {
1729   return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1730 }
1731 static inline const char* simcall_set_category__getraw__category(smx_simcall_t simcall)
1732 {
1733   return simgrid::simix::unmarshal_raw<const char*>(simcall->args[1]);
1734 }
1735 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg)
1736 {
1737   simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1738 }
1739
1740 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall)
1741 {
1742   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1743 }
1744 static inline std::function<void()> const* simcall_run_kernel__getraw__code(smx_simcall_t simcall)
1745 {
1746   return simgrid::simix::unmarshal_raw<std::function<void()> const*>(simcall->args[0]);
1747 }
1748 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg)
1749 {
1750   simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1751 }
1752
1753 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall)
1754 {
1755   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1756 }
1757 static inline std::function<void()> const* simcall_run_blocking__getraw__code(smx_simcall_t simcall)
1758 {
1759   return simgrid::simix::unmarshal_raw<std::function<void()> const*>(simcall->args[0]);
1760 }
1761 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg)
1762 {
1763   simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1764 }
1765
1766 /* The prototype of all simcall handlers, automatically generated for you */
1767
1768 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process);
1769 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1770 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1771 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1772 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1773 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>
1774 simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority,
1775                                 double bound);
1776 XBT_PRIVATE void
1777 simcall_HANDLER_execution_wait(smx_simcall_t simcall,
1778                                boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> execution);
1779 XBT_PRIVATE smx_actor_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_actor_t process);
1780 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1781 simcall_HANDLER_comm_iprobe(smx_simcall_t simcall, smx_mailbox_t mbox, int type, int src, int tag,
1782                             simix_match_func_t match_fun, void* data);
1783 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);
1784 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1785 simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate,
1786                            void* src_buff, size_t src_buff_size, simix_match_func_t match_fun,
1787                            simix_clean_func_t clean_fun, simix_copy_data_func_t copy_data_fun, void* data,
1788                            int detached);
1789 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);
1790 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1791 simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff,
1792                            size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun,
1793                            void* data, double rate);
1794 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1795 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall,
1796                                            boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> comm,
1797                                            double timeout);
1798 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall,
1799                                            boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> comm);
1800 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall,
1801                                               boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>* comms,
1802                                               size_t count);
1803 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1804 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1805 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1806 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1807 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1808 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1809 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1810 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1811 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1812 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1813 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1814 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, surf_file_t fd, sg_size_t size, sg_host_t host);
1815 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, surf_file_t fd, sg_size_t size, sg_host_t host);
1816 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* mount, const char* path, sg_storage_t st);
1817 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, surf_file_t fd, sg_host_t host);
1818 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);