1 /**********************************************************************/
2 /* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
4 /* DO NOT EVER CHANGE THIS FILE */
6 /* change simcalls specification in src/simix/simcalls.in */
7 /* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */
8 /**********************************************************************/
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.
14 * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
17 #include "src/simix/popping_private.h"
18 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall)
20 return simgrid::simix::unmarshal<int>(simcall->args[0]);
22 static inline int simcall_process_killall__getraw__reset_pid(smx_simcall_t simcall)
24 return simgrid::simix::unmarshal_raw<int>(simcall->args[0]);
26 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg)
28 simgrid::simix::marshal<int>(simcall->args[0], arg);
31 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall)
33 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
35 static inline smx_actor_t simcall_process_cleanup__getraw__process(smx_simcall_t simcall)
37 return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
39 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg)
41 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
44 static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall)
46 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
48 static inline smx_actor_t simcall_process_suspend__getraw__process(smx_simcall_t simcall)
50 return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
52 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_actor_t arg)
54 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
57 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall)
59 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
61 static inline smx_actor_t simcall_process_join__getraw__process(smx_simcall_t simcall)
63 return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
65 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg)
67 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
69 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall)
71 return simgrid::simix::unmarshal<double>(simcall->args[1]);
73 static inline double simcall_process_join__getraw__timeout(smx_simcall_t simcall)
75 return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
77 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg)
79 simgrid::simix::marshal<double>(simcall->args[1], arg);
81 static inline int simcall_process_join__get__result(smx_simcall_t simcall)
83 return simgrid::simix::unmarshal<int>(simcall->result);
85 static inline int simcall_process_join__getraw__result(smx_simcall_t simcall)
87 return simgrid::simix::unmarshal_raw<int>(simcall->result);
89 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
90 simgrid::simix::marshal<int>(simcall->result, result);
93 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall)
95 return simgrid::simix::unmarshal<double>(simcall->args[0]);
97 static inline double simcall_process_sleep__getraw__duration(smx_simcall_t simcall)
99 return simgrid::simix::unmarshal_raw<double>(simcall->args[0]);
101 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg)
103 simgrid::simix::marshal<double>(simcall->args[0], arg);
105 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall)
107 return simgrid::simix::unmarshal<int>(simcall->result);
109 static inline int simcall_process_sleep__getraw__result(smx_simcall_t simcall)
111 return simgrid::simix::unmarshal_raw<int>(simcall->result);
113 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
114 simgrid::simix::marshal<int>(simcall->result, result);
117 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall)
119 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
121 static inline const char* simcall_execution_start__getraw__name(smx_simcall_t simcall)
123 return simgrid::simix::unmarshal_raw<const char*>(simcall->args[0]);
125 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg)
127 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
129 static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall)
131 return simgrid::simix::unmarshal<double>(simcall->args[1]);
133 static inline double simcall_execution_start__getraw__flops_amount(smx_simcall_t simcall)
135 return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
137 static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg)
139 simgrid::simix::marshal<double>(simcall->args[1], arg);
141 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall)
143 return simgrid::simix::unmarshal<double>(simcall->args[2]);
145 static inline double simcall_execution_start__getraw__priority(smx_simcall_t simcall)
147 return simgrid::simix::unmarshal_raw<double>(simcall->args[2]);
149 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg)
151 simgrid::simix::marshal<double>(simcall->args[2], arg);
153 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall)
155 return simgrid::simix::unmarshal<double>(simcall->args[3]);
157 static inline double simcall_execution_start__getraw__bound(smx_simcall_t simcall)
159 return simgrid::simix::unmarshal_raw<double>(simcall->args[3]);
161 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg)
163 simgrid::simix::marshal<double>(simcall->args[3], arg);
165 static inline boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>
166 simcall_execution_start__get__result(smx_simcall_t simcall)
168 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>>(simcall->result);
170 static inline simgrid::kernel::activity::ExecImpl* simcall_execution_start__getraw__result(smx_simcall_t simcall)
172 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ExecImpl*>(simcall->result);
175 simcall_execution_start__set__result(smx_simcall_t simcall,
176 boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl> result)
178 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>>(simcall->result, result);
181 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall)
183 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
185 static inline const char* simcall_execution_parallel_start__getraw__name(smx_simcall_t simcall)
187 return simgrid::simix::unmarshal_raw<const char*>(simcall->args[0]);
189 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg)
191 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
193 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall)
195 return simgrid::simix::unmarshal<int>(simcall->args[1]);
197 static inline int simcall_execution_parallel_start__getraw__host_nb(smx_simcall_t simcall)
199 return simgrid::simix::unmarshal_raw<int>(simcall->args[1]);
201 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg)
203 simgrid::simix::marshal<int>(simcall->args[1], arg);
205 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall)
207 return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
209 static inline sg_host_t* simcall_execution_parallel_start__getraw__host_list(smx_simcall_t simcall)
211 return simgrid::simix::unmarshal_raw<sg_host_t*>(simcall->args[2]);
213 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg)
215 simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
217 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall)
219 return simgrid::simix::unmarshal<double*>(simcall->args[3]);
221 static inline double* simcall_execution_parallel_start__getraw__flops_amount(smx_simcall_t simcall)
223 return simgrid::simix::unmarshal_raw<double*>(simcall->args[3]);
225 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg)
227 simgrid::simix::marshal<double*>(simcall->args[3], arg);
229 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall)
231 return simgrid::simix::unmarshal<double*>(simcall->args[4]);
233 static inline double* simcall_execution_parallel_start__getraw__bytes_amount(smx_simcall_t simcall)
235 return simgrid::simix::unmarshal_raw<double*>(simcall->args[4]);
237 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg)
239 simgrid::simix::marshal<double*>(simcall->args[4], arg);
241 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall)
243 return simgrid::simix::unmarshal<double>(simcall->args[5]);
245 static inline double simcall_execution_parallel_start__getraw__rate(smx_simcall_t simcall)
247 return simgrid::simix::unmarshal_raw<double>(simcall->args[5]);
249 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg)
251 simgrid::simix::marshal<double>(simcall->args[5], arg);
253 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall)
255 return simgrid::simix::unmarshal<double>(simcall->args[6]);
257 static inline double simcall_execution_parallel_start__getraw__timeout(smx_simcall_t simcall)
259 return simgrid::simix::unmarshal_raw<double>(simcall->args[6]);
261 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg)
263 simgrid::simix::marshal<double>(simcall->args[6], arg);
265 static inline boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>
266 simcall_execution_parallel_start__get__result(smx_simcall_t simcall)
268 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>>(simcall->result);
270 static inline simgrid::kernel::activity::ExecImpl*
271 simcall_execution_parallel_start__getraw__result(smx_simcall_t simcall)
273 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ExecImpl*>(simcall->result);
276 simcall_execution_parallel_start__set__result(smx_simcall_t simcall,
277 boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl> result)
279 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>>(simcall->result, result);
282 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
283 simcall_execution_wait__get__execution(smx_simcall_t simcall)
285 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
287 static inline simgrid::kernel::activity::ActivityImpl* simcall_execution_wait__getraw__execution(smx_simcall_t simcall)
289 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
292 simcall_execution_wait__set__execution(smx_simcall_t simcall,
293 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
295 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
297 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall)
299 return simgrid::simix::unmarshal<int>(simcall->result);
301 static inline int simcall_execution_wait__getraw__result(smx_simcall_t simcall)
303 return simgrid::simix::unmarshal_raw<int>(simcall->result);
305 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
306 simgrid::simix::marshal<int>(simcall->result, result);
309 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall)
311 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
313 static inline smx_actor_t simcall_process_on_exit__getraw__process(smx_simcall_t simcall)
315 return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
317 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg)
319 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
321 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall)
323 return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
325 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__getraw__fun(smx_simcall_t simcall)
327 return simgrid::simix::unmarshal_raw<int_f_pvoid_pvoid_t>(simcall->args[1]);
329 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg)
331 simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
333 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall)
335 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
337 static inline void* simcall_process_on_exit__getraw__data(smx_simcall_t simcall)
339 return simgrid::simix::unmarshal_raw<void*>(simcall->args[2]);
341 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg)
343 simgrid::simix::marshal<void*>(simcall->args[2], arg);
346 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall)
348 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
350 static inline smx_mailbox_t simcall_comm_iprobe__getraw__mbox(smx_simcall_t simcall)
352 return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[0]);
354 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
356 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
358 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall)
360 return simgrid::simix::unmarshal<int>(simcall->args[1]);
362 static inline int simcall_comm_iprobe__getraw__type(smx_simcall_t simcall)
364 return simgrid::simix::unmarshal_raw<int>(simcall->args[1]);
366 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg)
368 simgrid::simix::marshal<int>(simcall->args[1], arg);
370 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall)
372 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[2]);
374 static inline simix_match_func_t simcall_comm_iprobe__getraw__match_fun(smx_simcall_t simcall)
376 return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[2]);
378 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
380 simgrid::simix::marshal<simix_match_func_t>(simcall->args[2], arg);
382 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall)
384 return simgrid::simix::unmarshal<void*>(simcall->args[3]);
386 static inline void* simcall_comm_iprobe__getraw__data(smx_simcall_t simcall)
388 return simgrid::simix::unmarshal_raw<void*>(simcall->args[3]);
390 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg)
392 simgrid::simix::marshal<void*>(simcall->args[3], arg);
394 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
395 simcall_comm_iprobe__get__result(smx_simcall_t simcall)
397 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result);
399 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_iprobe__getraw__result(smx_simcall_t simcall)
401 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->result);
404 simcall_comm_iprobe__set__result(smx_simcall_t simcall,
405 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> result)
407 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result, result);
410 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall)
412 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
414 static inline smx_actor_t simcall_comm_send__getraw__sender(smx_simcall_t simcall)
416 return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
418 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg)
420 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
422 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall)
424 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
426 static inline smx_mailbox_t simcall_comm_send__getraw__mbox(smx_simcall_t simcall)
428 return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[1]);
430 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
432 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
434 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall)
436 return simgrid::simix::unmarshal<double>(simcall->args[2]);
438 static inline double simcall_comm_send__getraw__task_size(smx_simcall_t simcall)
440 return simgrid::simix::unmarshal_raw<double>(simcall->args[2]);
442 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg)
444 simgrid::simix::marshal<double>(simcall->args[2], arg);
446 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall)
448 return simgrid::simix::unmarshal<double>(simcall->args[3]);
450 static inline double simcall_comm_send__getraw__rate(smx_simcall_t simcall)
452 return simgrid::simix::unmarshal_raw<double>(simcall->args[3]);
454 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg)
456 simgrid::simix::marshal<double>(simcall->args[3], arg);
458 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall)
460 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
462 static inline void* simcall_comm_send__getraw__src_buff(smx_simcall_t simcall)
464 return simgrid::simix::unmarshal_raw<void*>(simcall->args[4]);
466 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg)
468 simgrid::simix::marshal<void*>(simcall->args[4], arg);
470 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall)
472 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
474 static inline size_t simcall_comm_send__getraw__src_buff_size(smx_simcall_t simcall)
476 return simgrid::simix::unmarshal_raw<size_t>(simcall->args[5]);
478 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg)
480 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
482 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall)
484 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
486 static inline simix_match_func_t simcall_comm_send__getraw__match_fun(smx_simcall_t simcall)
488 return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[6]);
490 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
492 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
494 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall)
496 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
498 static inline simix_copy_data_func_t simcall_comm_send__getraw__copy_data_fun(smx_simcall_t simcall)
500 return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args[7]);
502 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
504 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
506 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall)
508 return simgrid::simix::unmarshal<void*>(simcall->args[8]);
510 static inline void* simcall_comm_send__getraw__data(smx_simcall_t simcall)
512 return simgrid::simix::unmarshal_raw<void*>(simcall->args[8]);
514 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg)
516 simgrid::simix::marshal<void*>(simcall->args[8], arg);
518 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall)
520 return simgrid::simix::unmarshal<double>(simcall->args[9]);
522 static inline double simcall_comm_send__getraw__timeout(smx_simcall_t simcall)
524 return simgrid::simix::unmarshal_raw<double>(simcall->args[9]);
526 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg)
528 simgrid::simix::marshal<double>(simcall->args[9], arg);
531 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall)
533 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
535 static inline smx_actor_t simcall_comm_isend__getraw__sender(smx_simcall_t simcall)
537 return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
539 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg)
541 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
543 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall)
545 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
547 static inline smx_mailbox_t simcall_comm_isend__getraw__mbox(smx_simcall_t simcall)
549 return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[1]);
551 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
553 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
555 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall)
557 return simgrid::simix::unmarshal<double>(simcall->args[2]);
559 static inline double simcall_comm_isend__getraw__task_size(smx_simcall_t simcall)
561 return simgrid::simix::unmarshal_raw<double>(simcall->args[2]);
563 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg)
565 simgrid::simix::marshal<double>(simcall->args[2], arg);
567 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall)
569 return simgrid::simix::unmarshal<double>(simcall->args[3]);
571 static inline double simcall_comm_isend__getraw__rate(smx_simcall_t simcall)
573 return simgrid::simix::unmarshal_raw<double>(simcall->args[3]);
575 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg)
577 simgrid::simix::marshal<double>(simcall->args[3], arg);
579 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall)
581 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
583 static inline void* simcall_comm_isend__getraw__src_buff(smx_simcall_t simcall)
585 return simgrid::simix::unmarshal_raw<void*>(simcall->args[4]);
587 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg)
589 simgrid::simix::marshal<void*>(simcall->args[4], arg);
591 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall)
593 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
595 static inline size_t simcall_comm_isend__getraw__src_buff_size(smx_simcall_t simcall)
597 return simgrid::simix::unmarshal_raw<size_t>(simcall->args[5]);
599 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg)
601 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
603 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall)
605 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
607 static inline simix_match_func_t simcall_comm_isend__getraw__match_fun(smx_simcall_t simcall)
609 return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[6]);
611 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
613 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
615 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall)
617 return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
619 static inline simix_clean_func_t simcall_comm_isend__getraw__clean_fun(smx_simcall_t simcall)
621 return simgrid::simix::unmarshal_raw<simix_clean_func_t>(simcall->args[7]);
623 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg)
625 simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
627 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall)
629 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
631 static inline simix_copy_data_func_t simcall_comm_isend__getraw__copy_data_fun(smx_simcall_t simcall)
633 return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args[8]);
635 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
637 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
639 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall)
641 return simgrid::simix::unmarshal<void*>(simcall->args[9]);
643 static inline void* simcall_comm_isend__getraw__data(smx_simcall_t simcall)
645 return simgrid::simix::unmarshal_raw<void*>(simcall->args[9]);
647 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg)
649 simgrid::simix::marshal<void*>(simcall->args[9], arg);
651 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall)
653 return simgrid::simix::unmarshal<int>(simcall->args[10]);
655 static inline int simcall_comm_isend__getraw__detached(smx_simcall_t simcall)
657 return simgrid::simix::unmarshal_raw<int>(simcall->args[10]);
659 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg)
661 simgrid::simix::marshal<int>(simcall->args[10], arg);
663 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
664 simcall_comm_isend__get__result(smx_simcall_t simcall)
666 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result);
668 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_isend__getraw__result(smx_simcall_t simcall)
670 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->result);
672 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall,
673 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> result)
675 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result, result);
678 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall)
680 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
682 static inline smx_actor_t simcall_comm_recv__getraw__receiver(smx_simcall_t simcall)
684 return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
686 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg)
688 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
690 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall)
692 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
694 static inline smx_mailbox_t simcall_comm_recv__getraw__mbox(smx_simcall_t simcall)
696 return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[1]);
698 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
700 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
702 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall)
704 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
706 static inline void* simcall_comm_recv__getraw__dst_buff(smx_simcall_t simcall)
708 return simgrid::simix::unmarshal_raw<void*>(simcall->args[2]);
710 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg)
712 simgrid::simix::marshal<void*>(simcall->args[2], arg);
714 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall)
716 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
718 static inline size_t* simcall_comm_recv__getraw__dst_buff_size(smx_simcall_t simcall)
720 return simgrid::simix::unmarshal_raw<size_t*>(simcall->args[3]);
722 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg)
724 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
726 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall)
728 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
730 static inline simix_match_func_t simcall_comm_recv__getraw__match_fun(smx_simcall_t simcall)
732 return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[4]);
734 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
736 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
738 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall)
740 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
742 static inline simix_copy_data_func_t simcall_comm_recv__getraw__copy_data_fun(smx_simcall_t simcall)
744 return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args[5]);
746 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
748 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
750 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall)
752 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
754 static inline void* simcall_comm_recv__getraw__data(smx_simcall_t simcall)
756 return simgrid::simix::unmarshal_raw<void*>(simcall->args[6]);
758 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg)
760 simgrid::simix::marshal<void*>(simcall->args[6], arg);
762 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall)
764 return simgrid::simix::unmarshal<double>(simcall->args[7]);
766 static inline double simcall_comm_recv__getraw__timeout(smx_simcall_t simcall)
768 return simgrid::simix::unmarshal_raw<double>(simcall->args[7]);
770 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg)
772 simgrid::simix::marshal<double>(simcall->args[7], arg);
774 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall)
776 return simgrid::simix::unmarshal<double>(simcall->args[8]);
778 static inline double simcall_comm_recv__getraw__rate(smx_simcall_t simcall)
780 return simgrid::simix::unmarshal_raw<double>(simcall->args[8]);
782 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg)
784 simgrid::simix::marshal<double>(simcall->args[8], arg);
787 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall)
789 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
791 static inline smx_actor_t simcall_comm_irecv__getraw__receiver(smx_simcall_t simcall)
793 return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args[0]);
795 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg)
797 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
799 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall)
801 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
803 static inline smx_mailbox_t simcall_comm_irecv__getraw__mbox(smx_simcall_t simcall)
805 return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args[1]);
807 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
809 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
811 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall)
813 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
815 static inline void* simcall_comm_irecv__getraw__dst_buff(smx_simcall_t simcall)
817 return simgrid::simix::unmarshal_raw<void*>(simcall->args[2]);
819 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg)
821 simgrid::simix::marshal<void*>(simcall->args[2], arg);
823 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall)
825 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
827 static inline size_t* simcall_comm_irecv__getraw__dst_buff_size(smx_simcall_t simcall)
829 return simgrid::simix::unmarshal_raw<size_t*>(simcall->args[3]);
831 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg)
833 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
835 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall)
837 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
839 static inline simix_match_func_t simcall_comm_irecv__getraw__match_fun(smx_simcall_t simcall)
841 return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args[4]);
843 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
845 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
847 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall)
849 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
851 static inline simix_copy_data_func_t simcall_comm_irecv__getraw__copy_data_fun(smx_simcall_t simcall)
853 return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args[5]);
855 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
857 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
859 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall)
861 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
863 static inline void* simcall_comm_irecv__getraw__data(smx_simcall_t simcall)
865 return simgrid::simix::unmarshal_raw<void*>(simcall->args[6]);
867 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg)
869 simgrid::simix::marshal<void*>(simcall->args[6], arg);
871 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall)
873 return simgrid::simix::unmarshal<double>(simcall->args[7]);
875 static inline double simcall_comm_irecv__getraw__rate(smx_simcall_t simcall)
877 return simgrid::simix::unmarshal_raw<double>(simcall->args[7]);
879 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg)
881 simgrid::simix::marshal<double>(simcall->args[7], arg);
883 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
884 simcall_comm_irecv__get__result(smx_simcall_t simcall)
886 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result);
888 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_irecv__getraw__result(smx_simcall_t simcall)
890 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->result);
892 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall,
893 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> result)
895 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result, result);
898 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall)
900 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
902 static inline xbt_dynar_t simcall_comm_waitany__getraw__comms(smx_simcall_t simcall)
904 return simgrid::simix::unmarshal_raw<xbt_dynar_t>(simcall->args[0]);
906 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg)
908 simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
910 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall)
912 return simgrid::simix::unmarshal<double>(simcall->args[1]);
914 static inline double simcall_comm_waitany__getraw__timeout(smx_simcall_t simcall)
916 return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
918 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg)
920 simgrid::simix::marshal<double>(simcall->args[1], arg);
922 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall)
924 return simgrid::simix::unmarshal<int>(simcall->result);
926 static inline int simcall_comm_waitany__getraw__result(smx_simcall_t simcall)
928 return simgrid::simix::unmarshal_raw<int>(simcall->result);
930 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
931 simgrid::simix::marshal<int>(simcall->result, result);
934 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
935 simcall_comm_wait__get__comm(smx_simcall_t simcall)
937 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
939 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_wait__getraw__comm(smx_simcall_t simcall)
941 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
943 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall,
944 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
946 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
948 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall)
950 return simgrid::simix::unmarshal<double>(simcall->args[1]);
952 static inline double simcall_comm_wait__getraw__timeout(smx_simcall_t simcall)
954 return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
956 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg)
958 simgrid::simix::marshal<double>(simcall->args[1], arg);
961 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
962 simcall_comm_test__get__comm(smx_simcall_t simcall)
964 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
966 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_test__getraw__comm(smx_simcall_t simcall)
968 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
970 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall,
971 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
973 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
975 static inline int simcall_comm_test__get__result(smx_simcall_t simcall)
977 return simgrid::simix::unmarshal<int>(simcall->result);
979 static inline int simcall_comm_test__getraw__result(smx_simcall_t simcall)
981 return simgrid::simix::unmarshal_raw<int>(simcall->result);
983 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
984 simgrid::simix::marshal<int>(simcall->result, result);
987 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>*
988 simcall_comm_testany__get__comms(smx_simcall_t simcall)
990 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>*>(simcall->args[0]);
992 static inline simgrid::kernel::activity::ActivityImpl** simcall_comm_testany__getraw__comms(smx_simcall_t simcall)
994 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl**>(simcall->args[0]);
996 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall,
997 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>* arg)
999 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>*>(simcall->args[0], arg);
1001 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall)
1003 return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
1005 static inline size_t simcall_comm_testany__getraw__count(smx_simcall_t simcall)
1007 return simgrid::simix::unmarshal_raw<size_t>(simcall->args[1]);
1009 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg)
1011 simgrid::simix::marshal<size_t>(simcall->args[1], arg);
1013 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall)
1015 return simgrid::simix::unmarshal<int>(simcall->result);
1017 static inline int simcall_comm_testany__getraw__result(smx_simcall_t simcall)
1019 return simgrid::simix::unmarshal_raw<int>(simcall->result);
1021 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
1022 simgrid::simix::marshal<int>(simcall->result, result);
1025 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall)
1027 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
1029 static inline smx_mutex_t simcall_mutex_lock__getraw__mutex(smx_simcall_t simcall)
1031 return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[0]);
1033 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1035 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
1038 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall)
1040 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
1042 static inline smx_mutex_t simcall_mutex_trylock__getraw__mutex(smx_simcall_t simcall)
1044 return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[0]);
1046 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1048 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
1050 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall)
1052 return simgrid::simix::unmarshal<int>(simcall->result);
1054 static inline int simcall_mutex_trylock__getraw__result(smx_simcall_t simcall)
1056 return simgrid::simix::unmarshal_raw<int>(simcall->result);
1058 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
1059 simgrid::simix::marshal<int>(simcall->result, result);
1062 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall)
1064 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
1066 static inline smx_mutex_t simcall_mutex_unlock__getraw__mutex(smx_simcall_t simcall)
1068 return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[0]);
1070 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1072 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
1075 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall)
1077 return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
1079 static inline smx_cond_t simcall_cond_init__getraw__result(smx_simcall_t simcall)
1081 return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->result);
1083 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
1084 simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
1087 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall)
1089 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
1091 static inline smx_cond_t simcall_cond_signal__getraw__cond(smx_simcall_t simcall)
1093 return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->args[0]);
1095 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg)
1097 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
1100 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall)
1102 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
1104 static inline smx_cond_t simcall_cond_wait__getraw__cond(smx_simcall_t simcall)
1106 return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->args[0]);
1108 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg)
1110 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
1112 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall)
1114 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
1116 static inline smx_mutex_t simcall_cond_wait__getraw__mutex(smx_simcall_t simcall)
1118 return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[1]);
1120 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1122 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
1125 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall)
1127 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
1129 static inline smx_cond_t simcall_cond_wait_timeout__getraw__cond(smx_simcall_t simcall)
1131 return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->args[0]);
1133 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg)
1135 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
1137 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall)
1139 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
1141 static inline smx_mutex_t simcall_cond_wait_timeout__getraw__mutex(smx_simcall_t simcall)
1143 return simgrid::simix::unmarshal_raw<smx_mutex_t>(simcall->args[1]);
1145 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg)
1147 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
1149 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall)
1151 return simgrid::simix::unmarshal<double>(simcall->args[2]);
1153 static inline double simcall_cond_wait_timeout__getraw__timeout(smx_simcall_t simcall)
1155 return simgrid::simix::unmarshal_raw<double>(simcall->args[2]);
1157 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg)
1159 simgrid::simix::marshal<double>(simcall->args[2], arg);
1162 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall)
1164 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
1166 static inline smx_cond_t simcall_cond_broadcast__getraw__cond(smx_simcall_t simcall)
1168 return simgrid::simix::unmarshal_raw<smx_cond_t>(simcall->args[0]);
1170 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg)
1172 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
1175 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall)
1177 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
1179 static inline smx_sem_t simcall_sem_acquire__getraw__sem(smx_simcall_t simcall)
1181 return simgrid::simix::unmarshal_raw<smx_sem_t>(simcall->args[0]);
1183 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg)
1185 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
1188 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall)
1190 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
1192 static inline smx_sem_t simcall_sem_acquire_timeout__getraw__sem(smx_simcall_t simcall)
1194 return simgrid::simix::unmarshal_raw<smx_sem_t>(simcall->args[0]);
1196 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg)
1198 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
1200 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall)
1202 return simgrid::simix::unmarshal<double>(simcall->args[1]);
1204 static inline double simcall_sem_acquire_timeout__getraw__timeout(smx_simcall_t simcall)
1206 return simgrid::simix::unmarshal_raw<double>(simcall->args[1]);
1208 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg)
1210 simgrid::simix::marshal<double>(simcall->args[1], arg);
1213 static inline surf_file_t simcall_file_read__get__fd(smx_simcall_t simcall)
1215 return simgrid::simix::unmarshal<surf_file_t>(simcall->args[0]);
1217 static inline surf_file_t simcall_file_read__getraw__fd(smx_simcall_t simcall)
1219 return simgrid::simix::unmarshal_raw<surf_file_t>(simcall->args[0]);
1221 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, surf_file_t arg)
1223 simgrid::simix::marshal<surf_file_t>(simcall->args[0], arg);
1225 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall)
1227 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
1229 static inline sg_size_t simcall_file_read__getraw__size(smx_simcall_t simcall)
1231 return simgrid::simix::unmarshal_raw<sg_size_t>(simcall->args[1]);
1233 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg)
1235 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
1237 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall)
1239 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1241 static inline sg_size_t simcall_file_read__getraw__result(smx_simcall_t simcall)
1243 return simgrid::simix::unmarshal_raw<sg_size_t>(simcall->result);
1245 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
1246 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1249 static inline surf_file_t simcall_file_write__get__fd(smx_simcall_t simcall)
1251 return simgrid::simix::unmarshal<surf_file_t>(simcall->args[0]);
1253 static inline surf_file_t simcall_file_write__getraw__fd(smx_simcall_t simcall)
1255 return simgrid::simix::unmarshal_raw<surf_file_t>(simcall->args[0]);
1257 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, surf_file_t arg)
1259 simgrid::simix::marshal<surf_file_t>(simcall->args[0], arg);
1261 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall)
1263 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
1265 static inline sg_size_t simcall_file_write__getraw__size(smx_simcall_t simcall)
1267 return simgrid::simix::unmarshal_raw<sg_size_t>(simcall->args[1]);
1269 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg)
1271 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
1273 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall)
1275 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1277 static inline sg_size_t simcall_file_write__getraw__result(smx_simcall_t simcall)
1279 return simgrid::simix::unmarshal_raw<sg_size_t>(simcall->result);
1281 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
1282 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1285 static inline int simcall_mc_random__get__min(smx_simcall_t simcall)
1287 return simgrid::simix::unmarshal<int>(simcall->args[0]);
1289 static inline int simcall_mc_random__getraw__min(smx_simcall_t simcall)
1291 return simgrid::simix::unmarshal_raw<int>(simcall->args[0]);
1293 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg)
1295 simgrid::simix::marshal<int>(simcall->args[0], arg);
1297 static inline int simcall_mc_random__get__max(smx_simcall_t simcall)
1299 return simgrid::simix::unmarshal<int>(simcall->args[1]);
1301 static inline int simcall_mc_random__getraw__max(smx_simcall_t simcall)
1303 return simgrid::simix::unmarshal_raw<int>(simcall->args[1]);
1305 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg)
1307 simgrid::simix::marshal<int>(simcall->args[1], arg);
1309 static inline int simcall_mc_random__get__result(smx_simcall_t simcall)
1311 return simgrid::simix::unmarshal<int>(simcall->result);
1313 static inline int simcall_mc_random__getraw__result(smx_simcall_t simcall)
1315 return simgrid::simix::unmarshal_raw<int>(simcall->result);
1317 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1318 simgrid::simix::marshal<int>(simcall->result, result);
1321 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1322 simcall_set_category__get__synchro(smx_simcall_t simcall)
1324 return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0]);
1326 static inline simgrid::kernel::activity::ActivityImpl* simcall_set_category__getraw__synchro(smx_simcall_t simcall)
1328 return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->args[0]);
1330 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall,
1331 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> arg)
1333 simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->args[0], arg);
1335 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall)
1337 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1339 static inline const char* simcall_set_category__getraw__category(smx_simcall_t simcall)
1341 return simgrid::simix::unmarshal_raw<const char*>(simcall->args[1]);
1343 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg)
1345 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1348 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall)
1350 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1352 static inline std::function<void()> const* simcall_run_kernel__getraw__code(smx_simcall_t simcall)
1354 return simgrid::simix::unmarshal_raw<std::function<void()> const*>(simcall->args[0]);
1356 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg)
1358 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1361 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall)
1363 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1365 static inline std::function<void()> const* simcall_run_blocking__getraw__code(smx_simcall_t simcall)
1367 return simgrid::simix::unmarshal_raw<std::function<void()> const*>(simcall->args[0]);
1369 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg)
1371 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1374 /* The prototype of all simcall handlers, automatically generated for you */
1376 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1377 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1378 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1379 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1380 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl>
1381 simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority,
1384 simcall_HANDLER_execution_wait(smx_simcall_t simcall,
1385 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> execution);
1386 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1387 simcall_HANDLER_comm_iprobe(smx_simcall_t simcall, smx_mailbox_t mbox, int type, simix_match_func_t match_fun,
1389 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);
1390 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1391 simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate,
1392 void* src_buff, size_t src_buff_size, simix_match_func_t match_fun,
1393 simix_clean_func_t clean_fun, simix_copy_data_func_t copy_data_fun, void* data,
1395 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);
1396 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>
1397 simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff,
1398 size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun,
1399 void* data, double rate);
1400 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1401 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall,
1402 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> comm,
1404 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall,
1405 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> comm);
1406 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall,
1407 boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>* comms,
1409 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1410 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1411 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1412 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1413 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1414 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1415 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1416 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, surf_file_t fd, sg_size_t size);
1417 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, surf_file_t fd, sg_size_t size);
1418 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);