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_process_t simcall_process_kill__get__process(smx_simcall_t simcall) {
53 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
55 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_process_t arg) {
56 simgrid::simix::marshal<smx_process_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_process_t simcall_process_cleanup__get__process(smx_simcall_t simcall) {
67 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
69 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_process_t arg) {
70 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
73 static inline smx_process_t simcall_process_suspend__get__process(smx_simcall_t simcall) {
74 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
76 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_process_t arg) {
77 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
80 static inline smx_process_t simcall_process_resume__get__process(smx_simcall_t simcall) {
81 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
83 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_process_t arg) {
84 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
87 static inline smx_process_t simcall_process_set_host__get__process(smx_simcall_t simcall) {
88 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
90 static inline void simcall_process_set_host__set__process(smx_simcall_t simcall, smx_process_t arg) {
91 simgrid::simix::marshal<smx_process_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_process_t simcall_process_is_suspended__get__process(smx_simcall_t simcall) {
101 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
103 static inline void simcall_process_is_suspended__set__process(smx_simcall_t simcall, smx_process_t arg) {
104 simgrid::simix::marshal<smx_process_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_process_t simcall_process_join__get__process(smx_simcall_t simcall) {
114 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
116 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_process_t arg) {
117 simgrid::simix::marshal<smx_process_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 smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
219 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
221 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_activity_t result){
222 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
225 static inline smx_activity_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
226 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
228 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
229 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
232 static inline smx_activity_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
233 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
235 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
236 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
238 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
239 return simgrid::simix::unmarshal<double>(simcall->args[1]);
241 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
242 simgrid::simix::marshal<double>(simcall->args[1], arg);
245 static inline smx_activity_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
246 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
248 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
249 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
251 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
252 return simgrid::simix::unmarshal<double>(simcall->args[1]);
254 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
255 simgrid::simix::marshal<double>(simcall->args[1], arg);
258 static inline smx_activity_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
259 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
261 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
262 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
264 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
265 return simgrid::simix::unmarshal<int>(simcall->result);
267 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
268 simgrid::simix::marshal<int>(simcall->result, result);
271 static inline smx_process_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
272 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
274 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_process_t arg) {
275 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
277 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
278 return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
280 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
281 simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
283 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
284 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
286 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
287 simgrid::simix::marshal<void*>(simcall->args[2], arg);
290 static inline smx_process_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
291 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
293 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_process_t arg) {
294 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
296 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
297 return simgrid::simix::unmarshal<int>(simcall->args[1]);
299 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
300 simgrid::simix::marshal<int>(simcall->args[1], arg);
303 static inline smx_process_t simcall_process_restart__get__process(smx_simcall_t simcall) {
304 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
306 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_process_t arg) {
307 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
309 static inline smx_process_t simcall_process_restart__get__result(smx_simcall_t simcall){
310 return simgrid::simix::unmarshal<smx_process_t>(simcall->result);
312 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_process_t result){
313 simgrid::simix::marshal<smx_process_t>(simcall->result, result);
316 static inline const char* simcall_mbox_create__get__name(smx_simcall_t simcall) {
317 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
319 static inline void simcall_mbox_create__set__name(smx_simcall_t simcall, const char* arg) {
320 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
322 static inline smx_mailbox_t simcall_mbox_create__get__result(smx_simcall_t simcall){
323 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->result);
325 static inline void simcall_mbox_create__set__result(smx_simcall_t simcall, smx_mailbox_t result){
326 simgrid::simix::marshal<smx_mailbox_t>(simcall->result, result);
329 static inline smx_mailbox_t simcall_mbox_set_receiver__get__mbox(smx_simcall_t simcall) {
330 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
332 static inline void simcall_mbox_set_receiver__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
333 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
335 static inline smx_process_t simcall_mbox_set_receiver__get__receiver(smx_simcall_t simcall) {
336 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[1]);
338 static inline void simcall_mbox_set_receiver__set__receiver(smx_simcall_t simcall, smx_process_t arg) {
339 simgrid::simix::marshal<smx_process_t>(simcall->args[1], arg);
342 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
343 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
345 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
346 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
348 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
349 return simgrid::simix::unmarshal<int>(simcall->args[1]);
351 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
352 simgrid::simix::marshal<int>(simcall->args[1], arg);
354 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
355 return simgrid::simix::unmarshal<int>(simcall->args[2]);
357 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
358 simgrid::simix::marshal<int>(simcall->args[2], arg);
360 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
361 return simgrid::simix::unmarshal<int>(simcall->args[3]);
363 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
364 simgrid::simix::marshal<int>(simcall->args[3], arg);
366 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
367 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
369 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
370 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
372 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
373 return simgrid::simix::unmarshal<void*>(simcall->args[5]);
375 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
376 simgrid::simix::marshal<void*>(simcall->args[5], arg);
378 static inline smx_activity_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
379 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
381 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_activity_t result){
382 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
385 static inline smx_process_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
386 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
388 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_process_t arg) {
389 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
391 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
392 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
394 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
395 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
397 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
398 return simgrid::simix::unmarshal<double>(simcall->args[2]);
400 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
401 simgrid::simix::marshal<double>(simcall->args[2], arg);
403 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
404 return simgrid::simix::unmarshal<double>(simcall->args[3]);
406 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
407 simgrid::simix::marshal<double>(simcall->args[3], arg);
409 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
410 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
412 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
413 simgrid::simix::marshal<void*>(simcall->args[4], arg);
415 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
416 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
418 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
419 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
421 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
422 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
424 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
425 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
427 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
428 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
430 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
431 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
433 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
434 return simgrid::simix::unmarshal<void*>(simcall->args[8]);
436 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
437 simgrid::simix::marshal<void*>(simcall->args[8], arg);
439 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
440 return simgrid::simix::unmarshal<double>(simcall->args[9]);
442 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
443 simgrid::simix::marshal<double>(simcall->args[9], arg);
446 static inline smx_process_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
447 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
449 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_process_t arg) {
450 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
452 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
453 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
455 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
456 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
458 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
459 return simgrid::simix::unmarshal<double>(simcall->args[2]);
461 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
462 simgrid::simix::marshal<double>(simcall->args[2], arg);
464 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
465 return simgrid::simix::unmarshal<double>(simcall->args[3]);
467 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
468 simgrid::simix::marshal<double>(simcall->args[3], arg);
470 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
471 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
473 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
474 simgrid::simix::marshal<void*>(simcall->args[4], arg);
476 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
477 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
479 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
480 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
482 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
483 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
485 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
486 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
488 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
489 return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
491 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
492 simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
494 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
495 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
497 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
498 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
500 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
501 return simgrid::simix::unmarshal<void*>(simcall->args[9]);
503 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
504 simgrid::simix::marshal<void*>(simcall->args[9], arg);
506 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
507 return simgrid::simix::unmarshal<int>(simcall->args[10]);
509 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
510 simgrid::simix::marshal<int>(simcall->args[10], arg);
512 static inline smx_activity_t simcall_comm_isend__get__result(smx_simcall_t simcall){
513 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
515 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_activity_t result){
516 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
519 static inline smx_process_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
520 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
522 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_process_t arg) {
523 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
525 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
526 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
528 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
529 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
531 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
532 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
534 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
535 simgrid::simix::marshal<void*>(simcall->args[2], arg);
537 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
538 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
540 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
541 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
543 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
544 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
546 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
547 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
549 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
550 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
552 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
553 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
555 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
556 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
558 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
559 simgrid::simix::marshal<void*>(simcall->args[6], arg);
561 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
562 return simgrid::simix::unmarshal<double>(simcall->args[7]);
564 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
565 simgrid::simix::marshal<double>(simcall->args[7], arg);
567 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
568 return simgrid::simix::unmarshal<double>(simcall->args[8]);
570 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
571 simgrid::simix::marshal<double>(simcall->args[8], arg);
574 static inline smx_process_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
575 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
577 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_process_t arg) {
578 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
580 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
581 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
583 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
584 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
586 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
587 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
589 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
590 simgrid::simix::marshal<void*>(simcall->args[2], arg);
592 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
593 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
595 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
596 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
598 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
599 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
601 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
602 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
604 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
605 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
607 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
608 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
610 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
611 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
613 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
614 simgrid::simix::marshal<void*>(simcall->args[6], arg);
616 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
617 return simgrid::simix::unmarshal<double>(simcall->args[7]);
619 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
620 simgrid::simix::marshal<double>(simcall->args[7], arg);
622 static inline smx_activity_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
623 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
625 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_activity_t result){
626 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
629 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
630 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
632 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
633 simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
635 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
636 return simgrid::simix::unmarshal<double>(simcall->args[1]);
638 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
639 simgrid::simix::marshal<double>(simcall->args[1], arg);
641 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
642 return simgrid::simix::unmarshal<int>(simcall->result);
644 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
645 simgrid::simix::marshal<int>(simcall->result, result);
648 static inline smx_activity_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
649 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
651 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
652 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
654 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
655 return simgrid::simix::unmarshal<double>(simcall->args[1]);
657 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
658 simgrid::simix::marshal<double>(simcall->args[1], arg);
661 static inline smx_activity_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
662 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
664 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
665 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
667 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
668 return simgrid::simix::unmarshal<int>(simcall->result);
670 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
671 simgrid::simix::marshal<int>(simcall->result, result);
674 static inline smx_activity_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
675 return simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]);
677 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_activity_t* arg) {
678 simgrid::simix::marshal<smx_activity_t*>(simcall->args[0], arg);
680 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
681 return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
683 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
684 simgrid::simix::marshal<size_t>(simcall->args[1], arg);
686 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
687 return simgrid::simix::unmarshal<int>(simcall->result);
689 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
690 simgrid::simix::marshal<int>(simcall->result, result);
693 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
694 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
696 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
697 simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
700 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
701 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
703 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
704 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
707 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
708 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
710 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
711 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
713 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
714 return simgrid::simix::unmarshal<int>(simcall->result);
716 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
717 simgrid::simix::marshal<int>(simcall->result, result);
720 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
721 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
723 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
724 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
727 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
728 return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
730 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
731 simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
734 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
735 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
737 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
738 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
741 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
742 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
744 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
745 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
747 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
748 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
750 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
751 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
754 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
755 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
757 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
758 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
760 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
761 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
763 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
764 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
766 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
767 return simgrid::simix::unmarshal<double>(simcall->args[2]);
769 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
770 simgrid::simix::marshal<double>(simcall->args[2], arg);
773 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
774 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
776 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
777 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
780 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
781 return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
783 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
784 simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
786 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
787 return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
789 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
790 simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
793 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
794 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
796 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
797 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
800 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
801 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
803 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
804 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
806 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
807 return simgrid::simix::unmarshal<int>(simcall->result);
809 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
810 simgrid::simix::marshal<int>(simcall->result, result);
813 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
814 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
816 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
817 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
820 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
821 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
823 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
824 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
826 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
827 return simgrid::simix::unmarshal<double>(simcall->args[1]);
829 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
830 simgrid::simix::marshal<double>(simcall->args[1], arg);
833 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
834 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
836 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
837 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
839 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
840 return simgrid::simix::unmarshal<int>(simcall->result);
842 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
843 simgrid::simix::marshal<int>(simcall->result, result);
846 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
847 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
849 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, smx_file_t arg) {
850 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
852 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall) {
853 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
855 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg) {
856 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
858 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall) {
859 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
861 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg) {
862 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
864 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
865 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
867 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
868 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
871 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
872 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
874 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
875 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
877 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
878 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
880 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
881 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
883 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
884 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
886 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
887 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
889 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
890 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
892 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
893 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
896 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
897 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
899 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
900 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
902 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
903 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
905 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
906 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
908 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
909 return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
911 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
912 simgrid::simix::marshal<smx_file_t>(simcall->result, result);
915 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
916 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
918 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
919 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
921 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
922 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
924 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
925 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
927 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
928 return simgrid::simix::unmarshal<int>(simcall->result);
930 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
931 simgrid::simix::marshal<int>(simcall->result, result);
934 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
935 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
937 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
938 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
940 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
941 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
943 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
944 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
946 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
947 return simgrid::simix::unmarshal<int>(simcall->result);
949 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
950 simgrid::simix::marshal<int>(simcall->result, result);
953 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
954 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
956 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
957 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
959 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
960 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
962 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
963 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
966 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
967 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
969 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
970 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
972 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
973 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
975 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
976 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
979 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
980 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
982 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
983 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
985 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
986 return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
988 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
989 simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
991 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
992 return simgrid::simix::unmarshal<int>(simcall->args[2]);
994 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
995 simgrid::simix::marshal<int>(simcall->args[2], arg);
997 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
998 return simgrid::simix::unmarshal<int>(simcall->result);
1000 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
1001 simgrid::simix::marshal<int>(simcall->result, result);
1004 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
1005 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1007 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1008 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1010 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
1011 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
1013 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
1014 simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
1017 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
1018 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1020 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1021 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1023 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
1024 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1026 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
1027 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1029 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
1030 return simgrid::simix::unmarshal<int>(simcall->result);
1032 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
1033 simgrid::simix::marshal<int>(simcall->result, result);
1036 static inline smx_storage_t simcall_storage_get_free_size__get__storage(smx_simcall_t simcall) {
1037 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1039 static inline void simcall_storage_get_free_size__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1040 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1042 static inline sg_size_t simcall_storage_get_free_size__get__result(smx_simcall_t simcall){
1043 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1045 static inline void simcall_storage_get_free_size__set__result(smx_simcall_t simcall, sg_size_t result){
1046 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1049 static inline smx_storage_t simcall_storage_get_used_size__get__name(smx_simcall_t simcall) {
1050 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1052 static inline void simcall_storage_get_used_size__set__name(smx_simcall_t simcall, smx_storage_t arg) {
1053 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1055 static inline sg_size_t simcall_storage_get_used_size__get__result(smx_simcall_t simcall){
1056 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1058 static inline void simcall_storage_get_used_size__set__result(smx_simcall_t simcall, sg_size_t result){
1059 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1062 static inline smx_storage_t simcall_storage_get_properties__get__storage(smx_simcall_t simcall) {
1063 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1065 static inline void simcall_storage_get_properties__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1066 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1068 static inline xbt_dict_t simcall_storage_get_properties__get__result(smx_simcall_t simcall){
1069 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1071 static inline void simcall_storage_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1072 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1075 static inline smx_storage_t simcall_storage_get_content__get__storage(smx_simcall_t simcall) {
1076 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1078 static inline void simcall_storage_get_content__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1079 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1081 static inline xbt_dict_t simcall_storage_get_content__get__result(smx_simcall_t simcall){
1082 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1084 static inline void simcall_storage_get_content__set__result(smx_simcall_t simcall, xbt_dict_t result){
1085 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1088 static inline const char* simcall_asr_get_properties__get__name(smx_simcall_t simcall) {
1089 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
1091 static inline void simcall_asr_get_properties__set__name(smx_simcall_t simcall, const char* arg) {
1092 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
1094 static inline xbt_dict_t simcall_asr_get_properties__get__result(smx_simcall_t simcall){
1095 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1097 static inline void simcall_asr_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1098 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1101 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
1102 return simgrid::simix::unmarshal<int>(simcall->args[0]);
1104 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
1105 simgrid::simix::marshal<int>(simcall->args[0], arg);
1107 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
1108 return simgrid::simix::unmarshal<int>(simcall->args[1]);
1110 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
1111 simgrid::simix::marshal<int>(simcall->args[1], arg);
1113 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
1114 return simgrid::simix::unmarshal<int>(simcall->result);
1116 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1117 simgrid::simix::marshal<int>(simcall->result, result);
1120 static inline smx_activity_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1121 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
1123 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_activity_t arg) {
1124 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
1126 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1127 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1129 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1130 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1133 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1134 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1136 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1137 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1140 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1141 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1143 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1144 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1147 /* The prototype of all simcall handlers, automatically generated for you */
1149 XBT_PRIVATE void simcall_HANDLER_vm_suspend(smx_simcall_t simcall, sg_host_t ind_vm);
1150 XBT_PRIVATE void simcall_HANDLER_vm_resume(smx_simcall_t simcall, sg_host_t ind_vm);
1151 XBT_PRIVATE void simcall_HANDLER_vm_shutdown(smx_simcall_t simcall, sg_host_t ind_vm);
1152 XBT_PRIVATE void simcall_HANDLER_vm_save(smx_simcall_t simcall, sg_host_t ind_vm);
1153 XBT_PRIVATE void simcall_HANDLER_vm_restore(smx_simcall_t simcall, sg_host_t ind_vm);
1154 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_process_t process);
1155 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1156 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_process_t process);
1157 XBT_PRIVATE void simcall_HANDLER_process_resume(smx_simcall_t simcall, smx_process_t process);
1158 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_process_t process, sg_host_t dest);
1159 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_process_t process, double timeout);
1160 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1161 XBT_PRIVATE smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound);
1162 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t execution);
1163 XBT_PRIVATE smx_process_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_process_t process);
1164 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);
1165 XBT_PRIVATE void simcall_HANDLER_comm_send(smx_simcall_t simcall, smx_process_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);
1166 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_process_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);
1167 XBT_PRIVATE void simcall_HANDLER_comm_recv(smx_simcall_t simcall, smx_process_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);
1168 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_process_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);
1169 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1170 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t comm, double timeout);
1171 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_activity_t comm);
1172 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_activity_t* comms, size_t count);
1173 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1174 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1175 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1176 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1177 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1178 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1179 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1180 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1181 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1182 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1183 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1184 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1185 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1186 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1187 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1188 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1189 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1190 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1191 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1192 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1193 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_free_size(smx_simcall_t simcall, smx_storage_t storage);
1194 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_used_size(smx_simcall_t simcall, smx_storage_t name);
1195 XBT_PRIVATE xbt_dict_t simcall_HANDLER_asr_get_properties(smx_simcall_t simcall, const char* name);
1196 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);