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 /**********************************************************************/
10 * Note that the name comes from http://en.wikipedia.org/wiki/Popping
11 * Indeed, the control flow is doing a strange dance in there.
13 * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
16 #include "src/simix/popping_private.h"
17 static inline sg_host_t simcall_vm_suspend__get__ind_vm(smx_simcall_t simcall) {
18 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
20 static inline void simcall_vm_suspend__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) {
21 simgrid::simix::marshal<sg_host_t>(simcall->args[0], arg);
24 static inline sg_host_t simcall_vm_shutdown__get__ind_vm(smx_simcall_t simcall) {
25 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
27 static inline void simcall_vm_shutdown__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) {
28 simgrid::simix::marshal<sg_host_t>(simcall->args[0], arg);
31 static inline smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall) {
32 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
34 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_actor_t arg) {
35 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
38 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall) {
39 return simgrid::simix::unmarshal<int>(simcall->args[0]);
41 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg) {
42 simgrid::simix::marshal<int>(simcall->args[0], arg);
45 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall) {
46 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
48 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg) {
49 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
52 static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall) {
53 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
55 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_actor_t arg) {
56 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
59 static inline smx_actor_t simcall_process_resume__get__process(smx_simcall_t simcall) {
60 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
62 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_actor_t arg) {
63 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
66 static inline smx_actor_t simcall_process_set_host__get__process(smx_simcall_t simcall) {
67 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
69 static inline void simcall_process_set_host__set__process(smx_simcall_t simcall, smx_actor_t arg) {
70 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
72 static inline sg_host_t simcall_process_set_host__get__dest(smx_simcall_t simcall) {
73 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
75 static inline void simcall_process_set_host__set__dest(smx_simcall_t simcall, sg_host_t arg) {
76 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
79 static inline smx_actor_t simcall_process_is_suspended__get__process(smx_simcall_t simcall) {
80 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
82 static inline void simcall_process_is_suspended__set__process(smx_simcall_t simcall, smx_actor_t arg) {
83 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
85 static inline int simcall_process_is_suspended__get__result(smx_simcall_t simcall){
86 return simgrid::simix::unmarshal<int>(simcall->result);
88 static inline void simcall_process_is_suspended__set__result(smx_simcall_t simcall, int result){
89 simgrid::simix::marshal<int>(simcall->result, result);
92 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall) {
93 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
95 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg) {
96 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
98 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall) {
99 return simgrid::simix::unmarshal<double>(simcall->args[1]);
101 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg) {
102 simgrid::simix::marshal<double>(simcall->args[1], arg);
104 static inline int simcall_process_join__get__result(smx_simcall_t simcall){
105 return simgrid::simix::unmarshal<int>(simcall->result);
107 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
108 simgrid::simix::marshal<int>(simcall->result, result);
111 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall) {
112 return simgrid::simix::unmarshal<double>(simcall->args[0]);
114 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg) {
115 simgrid::simix::marshal<double>(simcall->args[0], arg);
117 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall){
118 return simgrid::simix::unmarshal<int>(simcall->result);
120 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
121 simgrid::simix::marshal<int>(simcall->result, result);
124 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall) {
125 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
127 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg) {
128 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
130 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 void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg) {
134 simgrid::simix::marshal<double>(simcall->args[1], arg);
136 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall) {
137 return simgrid::simix::unmarshal<double>(simcall->args[2]);
139 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg) {
140 simgrid::simix::marshal<double>(simcall->args[2], arg);
142 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall) {
143 return simgrid::simix::unmarshal<double>(simcall->args[3]);
145 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg) {
146 simgrid::simix::marshal<double>(simcall->args[3], arg);
148 static inline smx_activity_t simcall_execution_start__get__result(smx_simcall_t simcall){
149 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
151 static inline void simcall_execution_start__set__result(smx_simcall_t simcall, smx_activity_t result){
152 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
155 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) {
156 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
158 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) {
159 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
161 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) {
162 return simgrid::simix::unmarshal<int>(simcall->args[1]);
164 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) {
165 simgrid::simix::marshal<int>(simcall->args[1], arg);
167 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) {
168 return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
170 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) {
171 simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
173 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) {
174 return simgrid::simix::unmarshal<double*>(simcall->args[3]);
176 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) {
177 simgrid::simix::marshal<double*>(simcall->args[3], arg);
179 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) {
180 return simgrid::simix::unmarshal<double*>(simcall->args[4]);
182 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) {
183 simgrid::simix::marshal<double*>(simcall->args[4], arg);
185 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall) {
186 return simgrid::simix::unmarshal<double>(simcall->args[5]);
188 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg) {
189 simgrid::simix::marshal<double>(simcall->args[5], arg);
191 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) {
192 return simgrid::simix::unmarshal<double>(simcall->args[6]);
194 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) {
195 simgrid::simix::marshal<double>(simcall->args[6], arg);
197 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) {
198 return simgrid::simix::unmarshal<double>(simcall->args[7]);
200 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) {
201 simgrid::simix::marshal<double>(simcall->args[7], arg);
203 static inline smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
204 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
206 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_activity_t result){
207 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
210 static inline smx_activity_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
211 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
213 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
214 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
217 static inline smx_activity_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
218 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
220 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
221 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
223 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
224 return simgrid::simix::unmarshal<double>(simcall->args[1]);
226 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
227 simgrid::simix::marshal<double>(simcall->args[1], arg);
230 static inline smx_activity_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
231 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
233 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
234 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
236 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
237 return simgrid::simix::unmarshal<double>(simcall->args[1]);
239 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
240 simgrid::simix::marshal<double>(simcall->args[1], arg);
243 static inline smx_activity_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
244 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
246 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
247 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
249 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
250 return simgrid::simix::unmarshal<int>(simcall->result);
252 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
253 simgrid::simix::marshal<int>(simcall->result, result);
256 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
257 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
259 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg) {
260 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
262 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
263 return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
265 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
266 simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
268 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
269 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
271 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
272 simgrid::simix::marshal<void*>(simcall->args[2], arg);
275 static inline smx_actor_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
276 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
278 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_actor_t arg) {
279 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
281 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
282 return simgrid::simix::unmarshal<int>(simcall->args[1]);
284 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
285 simgrid::simix::marshal<int>(simcall->args[1], arg);
288 static inline smx_actor_t simcall_process_restart__get__process(smx_simcall_t simcall) {
289 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
291 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_actor_t arg) {
292 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
294 static inline smx_actor_t simcall_process_restart__get__result(smx_simcall_t simcall){
295 return simgrid::simix::unmarshal<smx_actor_t>(simcall->result);
297 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_actor_t result){
298 simgrid::simix::marshal<smx_actor_t>(simcall->result, result);
301 static inline const char* simcall_mbox_create__get__name(smx_simcall_t simcall) {
302 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
304 static inline void simcall_mbox_create__set__name(smx_simcall_t simcall, const char* arg) {
305 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
307 static inline smx_mailbox_t simcall_mbox_create__get__result(smx_simcall_t simcall){
308 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->result);
310 static inline void simcall_mbox_create__set__result(smx_simcall_t simcall, smx_mailbox_t result){
311 simgrid::simix::marshal<smx_mailbox_t>(simcall->result, result);
314 static inline smx_mailbox_t simcall_mbox_set_receiver__get__mbox(smx_simcall_t simcall) {
315 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
317 static inline void simcall_mbox_set_receiver__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
318 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
320 static inline smx_actor_t simcall_mbox_set_receiver__get__receiver(smx_simcall_t simcall) {
321 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[1]);
323 static inline void simcall_mbox_set_receiver__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
324 simgrid::simix::marshal<smx_actor_t>(simcall->args[1], arg);
327 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
328 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
330 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
331 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
333 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
334 return simgrid::simix::unmarshal<int>(simcall->args[1]);
336 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
337 simgrid::simix::marshal<int>(simcall->args[1], arg);
339 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
340 return simgrid::simix::unmarshal<int>(simcall->args[2]);
342 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
343 simgrid::simix::marshal<int>(simcall->args[2], arg);
345 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
346 return simgrid::simix::unmarshal<int>(simcall->args[3]);
348 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
349 simgrid::simix::marshal<int>(simcall->args[3], arg);
351 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
352 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
354 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
355 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
357 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
358 return simgrid::simix::unmarshal<void*>(simcall->args[5]);
360 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
361 simgrid::simix::marshal<void*>(simcall->args[5], arg);
363 static inline smx_activity_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
364 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
366 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_activity_t result){
367 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
370 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
371 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
373 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
374 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
376 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
377 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
379 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
380 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
382 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
383 return simgrid::simix::unmarshal<double>(simcall->args[2]);
385 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
386 simgrid::simix::marshal<double>(simcall->args[2], arg);
388 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
389 return simgrid::simix::unmarshal<double>(simcall->args[3]);
391 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
392 simgrid::simix::marshal<double>(simcall->args[3], arg);
394 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
395 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
397 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
398 simgrid::simix::marshal<void*>(simcall->args[4], arg);
400 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
401 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
403 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
404 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
406 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
407 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
409 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
410 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
412 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
413 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
415 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
416 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
418 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
419 return simgrid::simix::unmarshal<void*>(simcall->args[8]);
421 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
422 simgrid::simix::marshal<void*>(simcall->args[8], arg);
424 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
425 return simgrid::simix::unmarshal<double>(simcall->args[9]);
427 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
428 simgrid::simix::marshal<double>(simcall->args[9], arg);
431 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
432 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
434 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
435 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
437 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
438 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
440 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
441 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
443 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
444 return simgrid::simix::unmarshal<double>(simcall->args[2]);
446 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
447 simgrid::simix::marshal<double>(simcall->args[2], arg);
449 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
450 return simgrid::simix::unmarshal<double>(simcall->args[3]);
452 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
453 simgrid::simix::marshal<double>(simcall->args[3], arg);
455 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
456 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
458 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
459 simgrid::simix::marshal<void*>(simcall->args[4], arg);
461 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
462 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
464 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
465 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
467 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
468 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
470 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
471 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
473 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
474 return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
476 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
477 simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
479 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
480 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
482 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
483 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
485 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
486 return simgrid::simix::unmarshal<void*>(simcall->args[9]);
488 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
489 simgrid::simix::marshal<void*>(simcall->args[9], arg);
491 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
492 return simgrid::simix::unmarshal<int>(simcall->args[10]);
494 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
495 simgrid::simix::marshal<int>(simcall->args[10], arg);
497 static inline smx_activity_t simcall_comm_isend__get__result(smx_simcall_t simcall){
498 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
500 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_activity_t result){
501 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
504 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
505 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
507 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
508 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
510 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
511 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
513 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
514 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
516 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
517 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
519 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
520 simgrid::simix::marshal<void*>(simcall->args[2], arg);
522 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
523 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
525 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
526 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
528 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
529 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
531 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
532 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
534 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
535 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
537 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
538 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
540 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
541 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
543 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
544 simgrid::simix::marshal<void*>(simcall->args[6], arg);
546 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
547 return simgrid::simix::unmarshal<double>(simcall->args[7]);
549 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
550 simgrid::simix::marshal<double>(simcall->args[7], arg);
552 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
553 return simgrid::simix::unmarshal<double>(simcall->args[8]);
555 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
556 simgrid::simix::marshal<double>(simcall->args[8], arg);
559 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
560 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
562 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
563 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
565 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
566 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
568 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
569 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
571 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
572 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
574 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
575 simgrid::simix::marshal<void*>(simcall->args[2], arg);
577 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
578 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
580 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
581 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
583 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
584 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
586 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
587 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
589 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
590 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
592 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
593 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
595 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
596 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
598 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
599 simgrid::simix::marshal<void*>(simcall->args[6], arg);
601 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
602 return simgrid::simix::unmarshal<double>(simcall->args[7]);
604 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
605 simgrid::simix::marshal<double>(simcall->args[7], arg);
607 static inline smx_activity_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
608 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
610 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_activity_t result){
611 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
614 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
615 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
617 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
618 simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
620 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
621 return simgrid::simix::unmarshal<double>(simcall->args[1]);
623 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
624 simgrid::simix::marshal<double>(simcall->args[1], arg);
626 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
627 return simgrid::simix::unmarshal<int>(simcall->result);
629 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
630 simgrid::simix::marshal<int>(simcall->result, result);
633 static inline smx_activity_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
634 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
636 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
637 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
639 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
640 return simgrid::simix::unmarshal<double>(simcall->args[1]);
642 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
643 simgrid::simix::marshal<double>(simcall->args[1], arg);
646 static inline smx_activity_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
647 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
649 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
650 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
652 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
653 return simgrid::simix::unmarshal<int>(simcall->result);
655 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
656 simgrid::simix::marshal<int>(simcall->result, result);
659 static inline smx_activity_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
660 return simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]);
662 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_activity_t* arg) {
663 simgrid::simix::marshal<smx_activity_t*>(simcall->args[0], arg);
665 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
666 return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
668 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
669 simgrid::simix::marshal<size_t>(simcall->args[1], arg);
671 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
672 return simgrid::simix::unmarshal<int>(simcall->result);
674 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
675 simgrid::simix::marshal<int>(simcall->result, result);
678 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
679 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
681 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
682 simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
685 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
686 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
688 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
689 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
692 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
693 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
695 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
696 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
698 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
699 return simgrid::simix::unmarshal<int>(simcall->result);
701 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
702 simgrid::simix::marshal<int>(simcall->result, result);
705 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
706 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
708 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
709 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
712 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
713 return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
715 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
716 simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
719 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
720 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
722 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
723 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
726 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
727 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
729 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
730 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
732 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
733 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
735 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
736 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
739 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
740 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
742 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
743 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
745 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
746 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
748 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
749 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
751 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
752 return simgrid::simix::unmarshal<double>(simcall->args[2]);
754 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
755 simgrid::simix::marshal<double>(simcall->args[2], arg);
758 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
759 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
761 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
762 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
765 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
766 return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
768 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
769 simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
771 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
772 return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
774 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
775 simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
778 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
779 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
781 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
782 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
785 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
786 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
788 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
789 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
791 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
792 return simgrid::simix::unmarshal<int>(simcall->result);
794 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
795 simgrid::simix::marshal<int>(simcall->result, result);
798 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
799 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
801 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
802 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
805 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
806 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
808 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
809 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
811 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
812 return simgrid::simix::unmarshal<double>(simcall->args[1]);
814 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
815 simgrid::simix::marshal<double>(simcall->args[1], arg);
818 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
819 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
821 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
822 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
824 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
825 return simgrid::simix::unmarshal<int>(simcall->result);
827 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
828 simgrid::simix::marshal<int>(simcall->result, result);
831 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
832 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
834 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, smx_file_t arg) {
835 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
837 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall) {
838 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
840 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg) {
841 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
843 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall) {
844 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
846 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg) {
847 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
849 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
850 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
852 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
853 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
856 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
857 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
859 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
860 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
862 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
863 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
865 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
866 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
868 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
869 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
871 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
872 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
874 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
875 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
877 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
878 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
881 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
882 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
884 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
885 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
887 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
888 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
890 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
891 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
893 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
894 return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
896 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
897 simgrid::simix::marshal<smx_file_t>(simcall->result, result);
900 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
901 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
903 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
904 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
906 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
907 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
909 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
910 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
912 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
913 return simgrid::simix::unmarshal<int>(simcall->result);
915 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
916 simgrid::simix::marshal<int>(simcall->result, result);
919 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
920 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
922 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
923 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
925 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
926 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
928 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
929 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
931 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
932 return simgrid::simix::unmarshal<int>(simcall->result);
934 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
935 simgrid::simix::marshal<int>(simcall->result, result);
938 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
939 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
941 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
942 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
944 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
945 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
947 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
948 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
951 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
952 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
954 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
955 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
957 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
958 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
960 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
961 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
964 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
965 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
967 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
968 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
970 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
971 return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
973 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
974 simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
976 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
977 return simgrid::simix::unmarshal<int>(simcall->args[2]);
979 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
980 simgrid::simix::marshal<int>(simcall->args[2], arg);
982 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
983 return simgrid::simix::unmarshal<int>(simcall->result);
985 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
986 simgrid::simix::marshal<int>(simcall->result, result);
989 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
990 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
992 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
993 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
995 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
996 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
998 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
999 simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
1002 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
1003 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1005 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1006 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1008 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
1009 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1011 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
1012 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1014 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
1015 return simgrid::simix::unmarshal<int>(simcall->result);
1017 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
1018 simgrid::simix::marshal<int>(simcall->result, result);
1021 static inline smx_storage_t simcall_storage_get_free_size__get__storage(smx_simcall_t simcall) {
1022 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1024 static inline void simcall_storage_get_free_size__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1025 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1027 static inline sg_size_t simcall_storage_get_free_size__get__result(smx_simcall_t simcall){
1028 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1030 static inline void simcall_storage_get_free_size__set__result(smx_simcall_t simcall, sg_size_t result){
1031 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1034 static inline smx_storage_t simcall_storage_get_used_size__get__name(smx_simcall_t simcall) {
1035 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1037 static inline void simcall_storage_get_used_size__set__name(smx_simcall_t simcall, smx_storage_t arg) {
1038 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1040 static inline sg_size_t simcall_storage_get_used_size__get__result(smx_simcall_t simcall){
1041 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1043 static inline void simcall_storage_get_used_size__set__result(smx_simcall_t simcall, sg_size_t result){
1044 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1047 static inline smx_storage_t simcall_storage_get_properties__get__storage(smx_simcall_t simcall) {
1048 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1050 static inline void simcall_storage_get_properties__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1051 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1053 static inline xbt_dict_t simcall_storage_get_properties__get__result(smx_simcall_t simcall){
1054 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1056 static inline void simcall_storage_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1057 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1060 static inline smx_storage_t simcall_storage_get_content__get__storage(smx_simcall_t simcall) {
1061 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1063 static inline void simcall_storage_get_content__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1064 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1066 static inline xbt_dict_t simcall_storage_get_content__get__result(smx_simcall_t simcall){
1067 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1069 static inline void simcall_storage_get_content__set__result(smx_simcall_t simcall, xbt_dict_t result){
1070 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1073 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
1074 return simgrid::simix::unmarshal<int>(simcall->args[0]);
1076 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
1077 simgrid::simix::marshal<int>(simcall->args[0], arg);
1079 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
1080 return simgrid::simix::unmarshal<int>(simcall->args[1]);
1082 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
1083 simgrid::simix::marshal<int>(simcall->args[1], arg);
1085 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
1086 return simgrid::simix::unmarshal<int>(simcall->result);
1088 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1089 simgrid::simix::marshal<int>(simcall->result, result);
1092 static inline smx_activity_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1093 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
1095 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_activity_t arg) {
1096 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
1098 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1099 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1101 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1102 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1105 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1106 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1108 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1109 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1112 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1113 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1115 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1116 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1119 /* The prototype of all simcall handlers, automatically generated for you */
1121 XBT_PRIVATE void simcall_HANDLER_vm_suspend(smx_simcall_t simcall, sg_host_t ind_vm);
1122 XBT_PRIVATE void simcall_HANDLER_vm_shutdown(smx_simcall_t simcall, sg_host_t ind_vm);
1123 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process);
1124 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1125 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1126 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_actor_t process, sg_host_t dest);
1127 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1128 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1129 XBT_PRIVATE smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound);
1130 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t execution);
1131 XBT_PRIVATE smx_actor_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_actor_t process);
1132 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_iprobe(smx_simcall_t simcall, smx_mailbox_t mbox, int type, int src, int tag, simix_match_func_t match_fun, void* data);
1133 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);
1134 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_clean_func_t clean_fun, simix_copy_data_func_t copy_data_fun, void* data, int detached);
1135 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);
1136 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_irecv(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 rate);
1137 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1138 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t comm, double timeout);
1139 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_activity_t comm);
1140 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_activity_t* comms, size_t count);
1141 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1142 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1143 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1144 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1145 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1146 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1147 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1148 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1149 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1150 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1151 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1152 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1153 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1154 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1155 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1156 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1157 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1158 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1159 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1160 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1161 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_free_size(smx_simcall_t simcall, smx_storage_t storage);
1162 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_used_size(smx_simcall_t simcall, smx_storage_t name);
1163 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);