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_resume__get__ind_vm(smx_simcall_t simcall) {
25 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
27 static inline void simcall_vm_resume__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 sg_host_t simcall_vm_shutdown__get__ind_vm(smx_simcall_t simcall) {
32 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
34 static inline void simcall_vm_shutdown__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) {
35 simgrid::simix::marshal<sg_host_t>(simcall->args[0], arg);
38 static inline sg_host_t simcall_vm_save__get__ind_vm(smx_simcall_t simcall) {
39 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
41 static inline void simcall_vm_save__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) {
42 simgrid::simix::marshal<sg_host_t>(simcall->args[0], arg);
45 static inline sg_host_t simcall_vm_restore__get__ind_vm(smx_simcall_t simcall) {
46 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
48 static inline void simcall_vm_restore__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) {
49 simgrid::simix::marshal<sg_host_t>(simcall->args[0], arg);
52 static inline smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall) {
53 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
55 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_actor_t arg) {
56 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
59 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall) {
60 return simgrid::simix::unmarshal<int>(simcall->args[0]);
62 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg) {
63 simgrid::simix::marshal<int>(simcall->args[0], arg);
66 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall) {
67 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
69 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg) {
70 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
73 static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall) {
74 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
76 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_actor_t arg) {
77 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
80 static inline smx_actor_t simcall_process_resume__get__process(smx_simcall_t simcall) {
81 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
83 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_actor_t arg) {
84 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
87 static inline smx_actor_t simcall_process_set_host__get__process(smx_simcall_t simcall) {
88 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
90 static inline void simcall_process_set_host__set__process(smx_simcall_t simcall, smx_actor_t arg) {
91 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
93 static inline sg_host_t simcall_process_set_host__get__dest(smx_simcall_t simcall) {
94 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
96 static inline void simcall_process_set_host__set__dest(smx_simcall_t simcall, sg_host_t arg) {
97 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
100 static inline smx_actor_t simcall_process_is_suspended__get__process(smx_simcall_t simcall) {
101 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
103 static inline void simcall_process_is_suspended__set__process(smx_simcall_t simcall, smx_actor_t arg) {
104 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
106 static inline int simcall_process_is_suspended__get__result(smx_simcall_t simcall){
107 return simgrid::simix::unmarshal<int>(simcall->result);
109 static inline void simcall_process_is_suspended__set__result(smx_simcall_t simcall, int result){
110 simgrid::simix::marshal<int>(simcall->result, result);
113 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall) {
114 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
116 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg) {
117 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
119 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall) {
120 return simgrid::simix::unmarshal<double>(simcall->args[1]);
122 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg) {
123 simgrid::simix::marshal<double>(simcall->args[1], arg);
125 static inline int simcall_process_join__get__result(smx_simcall_t simcall){
126 return simgrid::simix::unmarshal<int>(simcall->result);
128 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
129 simgrid::simix::marshal<int>(simcall->result, result);
132 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall) {
133 return simgrid::simix::unmarshal<double>(simcall->args[0]);
135 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg) {
136 simgrid::simix::marshal<double>(simcall->args[0], arg);
138 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall){
139 return simgrid::simix::unmarshal<int>(simcall->result);
141 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
142 simgrid::simix::marshal<int>(simcall->result, result);
145 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall) {
146 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
148 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg) {
149 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
151 static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall) {
152 return simgrid::simix::unmarshal<double>(simcall->args[1]);
154 static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg) {
155 simgrid::simix::marshal<double>(simcall->args[1], arg);
157 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall) {
158 return simgrid::simix::unmarshal<double>(simcall->args[2]);
160 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg) {
161 simgrid::simix::marshal<double>(simcall->args[2], arg);
163 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall) {
164 return simgrid::simix::unmarshal<double>(simcall->args[3]);
166 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg) {
167 simgrid::simix::marshal<double>(simcall->args[3], arg);
169 static inline smx_activity_t simcall_execution_start__get__result(smx_simcall_t simcall){
170 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
172 static inline void simcall_execution_start__set__result(smx_simcall_t simcall, smx_activity_t result){
173 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
176 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) {
177 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
179 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) {
180 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
182 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) {
183 return simgrid::simix::unmarshal<int>(simcall->args[1]);
185 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) {
186 simgrid::simix::marshal<int>(simcall->args[1], arg);
188 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) {
189 return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
191 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) {
192 simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
194 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) {
195 return simgrid::simix::unmarshal<double*>(simcall->args[3]);
197 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) {
198 simgrid::simix::marshal<double*>(simcall->args[3], arg);
200 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) {
201 return simgrid::simix::unmarshal<double*>(simcall->args[4]);
203 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) {
204 simgrid::simix::marshal<double*>(simcall->args[4], arg);
206 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall) {
207 return simgrid::simix::unmarshal<double>(simcall->args[5]);
209 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg) {
210 simgrid::simix::marshal<double>(simcall->args[5], arg);
212 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) {
213 return simgrid::simix::unmarshal<double>(simcall->args[6]);
215 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) {
216 simgrid::simix::marshal<double>(simcall->args[6], arg);
218 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall)
220 return simgrid::simix::unmarshal<double>(simcall->args[7]);
222 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg)
224 simgrid::simix::marshal<double>(simcall->args[7], arg);
226 static inline smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
227 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
229 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_activity_t result){
230 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
233 static inline smx_activity_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
234 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
236 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
237 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
240 static inline smx_activity_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
241 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
243 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
244 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
246 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
247 return simgrid::simix::unmarshal<double>(simcall->args[1]);
249 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
250 simgrid::simix::marshal<double>(simcall->args[1], arg);
253 static inline smx_activity_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
254 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
256 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
257 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
259 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
260 return simgrid::simix::unmarshal<double>(simcall->args[1]);
262 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
263 simgrid::simix::marshal<double>(simcall->args[1], arg);
266 static inline smx_activity_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
267 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
269 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
270 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
272 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
273 return simgrid::simix::unmarshal<int>(simcall->result);
275 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
276 simgrid::simix::marshal<int>(simcall->result, result);
279 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
280 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
282 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg) {
283 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
285 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
286 return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
288 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
289 simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
291 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
292 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
294 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
295 simgrid::simix::marshal<void*>(simcall->args[2], arg);
298 static inline smx_actor_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
299 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
301 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_actor_t arg) {
302 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
304 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
305 return simgrid::simix::unmarshal<int>(simcall->args[1]);
307 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
308 simgrid::simix::marshal<int>(simcall->args[1], arg);
311 static inline smx_actor_t simcall_process_restart__get__process(smx_simcall_t simcall) {
312 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
314 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_actor_t arg) {
315 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
317 static inline smx_actor_t simcall_process_restart__get__result(smx_simcall_t simcall){
318 return simgrid::simix::unmarshal<smx_actor_t>(simcall->result);
320 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_actor_t result){
321 simgrid::simix::marshal<smx_actor_t>(simcall->result, result);
324 static inline const char* simcall_mbox_create__get__name(smx_simcall_t simcall) {
325 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
327 static inline void simcall_mbox_create__set__name(smx_simcall_t simcall, const char* arg) {
328 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
330 static inline smx_mailbox_t simcall_mbox_create__get__result(smx_simcall_t simcall){
331 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->result);
333 static inline void simcall_mbox_create__set__result(smx_simcall_t simcall, smx_mailbox_t result){
334 simgrid::simix::marshal<smx_mailbox_t>(simcall->result, result);
337 static inline smx_mailbox_t simcall_mbox_set_receiver__get__mbox(smx_simcall_t simcall) {
338 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
340 static inline void simcall_mbox_set_receiver__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
341 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
343 static inline smx_actor_t simcall_mbox_set_receiver__get__receiver(smx_simcall_t simcall) {
344 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[1]);
346 static inline void simcall_mbox_set_receiver__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
347 simgrid::simix::marshal<smx_actor_t>(simcall->args[1], arg);
350 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
351 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
353 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
354 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
356 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
357 return simgrid::simix::unmarshal<int>(simcall->args[1]);
359 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
360 simgrid::simix::marshal<int>(simcall->args[1], arg);
362 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
363 return simgrid::simix::unmarshal<int>(simcall->args[2]);
365 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
366 simgrid::simix::marshal<int>(simcall->args[2], arg);
368 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
369 return simgrid::simix::unmarshal<int>(simcall->args[3]);
371 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
372 simgrid::simix::marshal<int>(simcall->args[3], arg);
374 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
375 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
377 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
378 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
380 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
381 return simgrid::simix::unmarshal<void*>(simcall->args[5]);
383 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
384 simgrid::simix::marshal<void*>(simcall->args[5], arg);
386 static inline smx_activity_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
387 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
389 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_activity_t result){
390 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
393 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
394 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
396 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
397 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
399 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
400 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
402 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
403 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
405 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
406 return simgrid::simix::unmarshal<double>(simcall->args[2]);
408 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
409 simgrid::simix::marshal<double>(simcall->args[2], arg);
411 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
412 return simgrid::simix::unmarshal<double>(simcall->args[3]);
414 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
415 simgrid::simix::marshal<double>(simcall->args[3], arg);
417 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
418 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
420 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
421 simgrid::simix::marshal<void*>(simcall->args[4], arg);
423 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
424 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
426 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
427 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
429 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
430 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
432 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
433 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
435 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
436 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
438 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
439 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
441 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
442 return simgrid::simix::unmarshal<void*>(simcall->args[8]);
444 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
445 simgrid::simix::marshal<void*>(simcall->args[8], arg);
447 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
448 return simgrid::simix::unmarshal<double>(simcall->args[9]);
450 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
451 simgrid::simix::marshal<double>(simcall->args[9], arg);
454 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
455 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
457 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
458 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
460 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
461 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
463 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
464 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
466 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
467 return simgrid::simix::unmarshal<double>(simcall->args[2]);
469 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
470 simgrid::simix::marshal<double>(simcall->args[2], arg);
472 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
473 return simgrid::simix::unmarshal<double>(simcall->args[3]);
475 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
476 simgrid::simix::marshal<double>(simcall->args[3], arg);
478 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
479 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
481 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
482 simgrid::simix::marshal<void*>(simcall->args[4], arg);
484 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
485 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
487 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
488 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
490 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
491 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
493 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
494 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
496 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
497 return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
499 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
500 simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
502 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
503 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
505 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
506 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
508 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
509 return simgrid::simix::unmarshal<void*>(simcall->args[9]);
511 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
512 simgrid::simix::marshal<void*>(simcall->args[9], arg);
514 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
515 return simgrid::simix::unmarshal<int>(simcall->args[10]);
517 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
518 simgrid::simix::marshal<int>(simcall->args[10], arg);
520 static inline smx_activity_t simcall_comm_isend__get__result(smx_simcall_t simcall){
521 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
523 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_activity_t result){
524 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
527 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
528 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
530 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
531 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
533 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
534 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
536 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
537 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
539 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
540 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
542 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
543 simgrid::simix::marshal<void*>(simcall->args[2], arg);
545 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
546 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
548 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
549 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
551 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
552 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
554 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
555 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
557 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
558 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
560 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
561 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
563 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
564 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
566 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
567 simgrid::simix::marshal<void*>(simcall->args[6], arg);
569 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
570 return simgrid::simix::unmarshal<double>(simcall->args[7]);
572 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
573 simgrid::simix::marshal<double>(simcall->args[7], arg);
575 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
576 return simgrid::simix::unmarshal<double>(simcall->args[8]);
578 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
579 simgrid::simix::marshal<double>(simcall->args[8], arg);
582 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
583 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
585 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
586 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
588 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
589 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
591 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
592 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
594 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
595 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
597 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
598 simgrid::simix::marshal<void*>(simcall->args[2], arg);
600 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
601 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
603 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
604 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
606 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
607 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
609 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
610 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
612 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
613 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
615 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
616 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
618 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
619 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
621 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
622 simgrid::simix::marshal<void*>(simcall->args[6], arg);
624 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
625 return simgrid::simix::unmarshal<double>(simcall->args[7]);
627 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
628 simgrid::simix::marshal<double>(simcall->args[7], arg);
630 static inline smx_activity_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
631 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
633 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_activity_t result){
634 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
637 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
638 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
640 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
641 simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
643 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
644 return simgrid::simix::unmarshal<double>(simcall->args[1]);
646 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
647 simgrid::simix::marshal<double>(simcall->args[1], arg);
649 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
650 return simgrid::simix::unmarshal<int>(simcall->result);
652 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
653 simgrid::simix::marshal<int>(simcall->result, result);
656 static inline smx_activity_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
657 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
659 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
660 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
662 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
663 return simgrid::simix::unmarshal<double>(simcall->args[1]);
665 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
666 simgrid::simix::marshal<double>(simcall->args[1], arg);
669 static inline smx_activity_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
670 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
672 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
673 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
675 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
676 return simgrid::simix::unmarshal<int>(simcall->result);
678 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
679 simgrid::simix::marshal<int>(simcall->result, result);
682 static inline smx_activity_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
683 return simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]);
685 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_activity_t* arg) {
686 simgrid::simix::marshal<smx_activity_t*>(simcall->args[0], arg);
688 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
689 return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
691 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
692 simgrid::simix::marshal<size_t>(simcall->args[1], arg);
694 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
695 return simgrid::simix::unmarshal<int>(simcall->result);
697 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
698 simgrid::simix::marshal<int>(simcall->result, result);
701 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
702 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
704 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
705 simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
708 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
709 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
711 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
712 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
715 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
716 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
718 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
719 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
721 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
722 return simgrid::simix::unmarshal<int>(simcall->result);
724 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
725 simgrid::simix::marshal<int>(simcall->result, result);
728 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
729 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
731 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
732 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
735 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
736 return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
738 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
739 simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
742 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
743 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
745 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
746 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
749 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
750 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
752 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
753 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
755 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
756 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
758 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
759 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
762 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
763 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
765 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
766 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
768 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
769 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
771 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
772 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
774 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
775 return simgrid::simix::unmarshal<double>(simcall->args[2]);
777 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
778 simgrid::simix::marshal<double>(simcall->args[2], arg);
781 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
782 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
784 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
785 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
788 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
789 return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
791 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
792 simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
794 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
795 return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
797 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
798 simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
801 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
802 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
804 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
805 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
808 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
809 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
811 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
812 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
814 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
815 return simgrid::simix::unmarshal<int>(simcall->result);
817 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
818 simgrid::simix::marshal<int>(simcall->result, result);
821 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
822 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
824 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
825 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
828 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
829 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
831 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
832 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
834 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
835 return simgrid::simix::unmarshal<double>(simcall->args[1]);
837 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
838 simgrid::simix::marshal<double>(simcall->args[1], arg);
841 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
842 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
844 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
845 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
847 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
848 return simgrid::simix::unmarshal<int>(simcall->result);
850 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
851 simgrid::simix::marshal<int>(simcall->result, result);
854 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
855 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
857 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, smx_file_t arg) {
858 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
860 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall) {
861 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
863 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg) {
864 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
866 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall) {
867 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
869 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg) {
870 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
872 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
873 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
875 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
876 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
879 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
880 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
882 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
883 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
885 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
886 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
888 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
889 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
891 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
892 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
894 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
895 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
897 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
898 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
900 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
901 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
904 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
905 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
907 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
908 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
910 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
911 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
913 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
914 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
916 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
917 return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
919 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
920 simgrid::simix::marshal<smx_file_t>(simcall->result, result);
923 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
924 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
926 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
927 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
929 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
930 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
932 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
933 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
935 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
936 return simgrid::simix::unmarshal<int>(simcall->result);
938 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
939 simgrid::simix::marshal<int>(simcall->result, result);
942 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
943 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
945 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
946 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
948 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
949 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
951 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
952 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
954 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
955 return simgrid::simix::unmarshal<int>(simcall->result);
957 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
958 simgrid::simix::marshal<int>(simcall->result, result);
961 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
962 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
964 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
965 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
967 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
968 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
970 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
971 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
974 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
975 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
977 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
978 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
980 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
981 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
983 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
984 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
987 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
988 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
990 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
991 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
993 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
994 return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
996 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
997 simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
999 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
1000 return simgrid::simix::unmarshal<int>(simcall->args[2]);
1002 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
1003 simgrid::simix::marshal<int>(simcall->args[2], arg);
1005 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
1006 return simgrid::simix::unmarshal<int>(simcall->result);
1008 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
1009 simgrid::simix::marshal<int>(simcall->result, result);
1012 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
1013 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1015 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1016 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1018 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
1019 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
1021 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
1022 simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
1025 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
1026 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1028 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1029 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1031 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
1032 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1034 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
1035 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1037 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
1038 return simgrid::simix::unmarshal<int>(simcall->result);
1040 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
1041 simgrid::simix::marshal<int>(simcall->result, result);
1044 static inline smx_storage_t simcall_storage_get_free_size__get__storage(smx_simcall_t simcall) {
1045 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1047 static inline void simcall_storage_get_free_size__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1048 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1050 static inline sg_size_t simcall_storage_get_free_size__get__result(smx_simcall_t simcall){
1051 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1053 static inline void simcall_storage_get_free_size__set__result(smx_simcall_t simcall, sg_size_t result){
1054 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1057 static inline smx_storage_t simcall_storage_get_used_size__get__name(smx_simcall_t simcall) {
1058 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1060 static inline void simcall_storage_get_used_size__set__name(smx_simcall_t simcall, smx_storage_t arg) {
1061 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1063 static inline sg_size_t simcall_storage_get_used_size__get__result(smx_simcall_t simcall){
1064 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1066 static inline void simcall_storage_get_used_size__set__result(smx_simcall_t simcall, sg_size_t result){
1067 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1070 static inline smx_storage_t simcall_storage_get_properties__get__storage(smx_simcall_t simcall) {
1071 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1073 static inline void simcall_storage_get_properties__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1074 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1076 static inline xbt_dict_t simcall_storage_get_properties__get__result(smx_simcall_t simcall){
1077 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1079 static inline void simcall_storage_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1080 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1083 static inline smx_storage_t simcall_storage_get_content__get__storage(smx_simcall_t simcall) {
1084 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1086 static inline void simcall_storage_get_content__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1087 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1089 static inline xbt_dict_t simcall_storage_get_content__get__result(smx_simcall_t simcall){
1090 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1092 static inline void simcall_storage_get_content__set__result(smx_simcall_t simcall, xbt_dict_t result){
1093 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1096 static inline const char* simcall_asr_get_properties__get__name(smx_simcall_t simcall) {
1097 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
1099 static inline void simcall_asr_get_properties__set__name(smx_simcall_t simcall, const char* arg) {
1100 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
1102 static inline xbt_dict_t simcall_asr_get_properties__get__result(smx_simcall_t simcall){
1103 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1105 static inline void simcall_asr_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1106 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1109 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
1110 return simgrid::simix::unmarshal<int>(simcall->args[0]);
1112 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
1113 simgrid::simix::marshal<int>(simcall->args[0], arg);
1115 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
1116 return simgrid::simix::unmarshal<int>(simcall->args[1]);
1118 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
1119 simgrid::simix::marshal<int>(simcall->args[1], arg);
1121 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
1122 return simgrid::simix::unmarshal<int>(simcall->result);
1124 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1125 simgrid::simix::marshal<int>(simcall->result, result);
1128 static inline smx_activity_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1129 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
1131 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_activity_t arg) {
1132 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
1134 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1135 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1137 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1138 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1141 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1142 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1144 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1145 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1148 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1149 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1151 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1152 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1155 /* The prototype of all simcall handlers, automatically generated for you */
1157 XBT_PRIVATE void simcall_HANDLER_vm_suspend(smx_simcall_t simcall, sg_host_t ind_vm);
1158 XBT_PRIVATE void simcall_HANDLER_vm_resume(smx_simcall_t simcall, sg_host_t ind_vm);
1159 XBT_PRIVATE void simcall_HANDLER_vm_shutdown(smx_simcall_t simcall, sg_host_t ind_vm);
1160 XBT_PRIVATE void simcall_HANDLER_vm_save(smx_simcall_t simcall, sg_host_t ind_vm);
1161 XBT_PRIVATE void simcall_HANDLER_vm_restore(smx_simcall_t simcall, sg_host_t ind_vm);
1162 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process);
1163 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1164 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1165 XBT_PRIVATE void simcall_HANDLER_process_resume(smx_simcall_t simcall, smx_actor_t process);
1166 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_actor_t process, sg_host_t dest);
1167 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1168 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1169 XBT_PRIVATE smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound);
1170 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t execution);
1171 XBT_PRIVATE smx_actor_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_actor_t process);
1172 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);
1173 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);
1174 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);
1175 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);
1176 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);
1177 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1178 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t comm, double timeout);
1179 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_activity_t comm);
1180 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_activity_t* comms, size_t count);
1181 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1182 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1183 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1184 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1185 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1186 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1187 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1188 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1189 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1190 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1191 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1192 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1193 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1194 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1195 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1196 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1197 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1198 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1199 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1200 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1201 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_free_size(smx_simcall_t simcall, smx_storage_t storage);
1202 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_used_size(smx_simcall_t simcall, smx_storage_t name);
1203 XBT_PRIVATE xbt_dict_t simcall_HANDLER_asr_get_properties(smx_simcall_t simcall, const char* name);
1204 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);