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 unsigned long simcall_execution_start__get__affinity_mask(smx_simcall_t simcall) {
170 return simgrid::simix::unmarshal<unsigned long>(simcall->args[4]);
172 static inline void simcall_execution_start__set__affinity_mask(smx_simcall_t simcall, unsigned long arg) {
173 simgrid::simix::marshal<unsigned long>(simcall->args[4], arg);
175 static inline smx_synchro_t simcall_execution_start__get__result(smx_simcall_t simcall){
176 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->result);
178 static inline void simcall_execution_start__set__result(smx_simcall_t simcall, smx_synchro_t result){
179 simgrid::simix::marshal<smx_synchro_t>(simcall->result, result);
182 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) {
183 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
185 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) {
186 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
188 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) {
189 return simgrid::simix::unmarshal<int>(simcall->args[1]);
191 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) {
192 simgrid::simix::marshal<int>(simcall->args[1], arg);
194 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) {
195 return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
197 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) {
198 simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
200 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) {
201 return simgrid::simix::unmarshal<double*>(simcall->args[3]);
203 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) {
204 simgrid::simix::marshal<double*>(simcall->args[3], arg);
206 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) {
207 return simgrid::simix::unmarshal<double*>(simcall->args[4]);
209 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) {
210 simgrid::simix::marshal<double*>(simcall->args[4], arg);
212 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall) {
213 return simgrid::simix::unmarshal<double>(simcall->args[5]);
215 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg) {
216 simgrid::simix::marshal<double>(simcall->args[5], arg);
218 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) {
219 return simgrid::simix::unmarshal<double>(simcall->args[6]);
221 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) {
222 simgrid::simix::marshal<double>(simcall->args[6], arg);
224 static inline smx_synchro_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
225 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->result);
227 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_synchro_t result){
228 simgrid::simix::marshal<smx_synchro_t>(simcall->result, result);
231 static inline smx_synchro_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
232 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]);
234 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_synchro_t arg) {
235 simgrid::simix::marshal<smx_synchro_t>(simcall->args[0], arg);
238 static inline smx_synchro_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
239 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]);
241 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_synchro_t arg) {
242 simgrid::simix::marshal<smx_synchro_t>(simcall->args[0], arg);
244 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
245 return simgrid::simix::unmarshal<double>(simcall->args[1]);
247 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
248 simgrid::simix::marshal<double>(simcall->args[1], arg);
251 static inline smx_synchro_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
252 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]);
254 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_synchro_t arg) {
255 simgrid::simix::marshal<smx_synchro_t>(simcall->args[0], arg);
257 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
258 return simgrid::simix::unmarshal<double>(simcall->args[1]);
260 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
261 simgrid::simix::marshal<double>(simcall->args[1], arg);
264 static inline smx_synchro_t simcall_execution_set_affinity__get__execution(smx_simcall_t simcall) {
265 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]);
267 static inline void simcall_execution_set_affinity__set__execution(smx_simcall_t simcall, smx_synchro_t arg) {
268 simgrid::simix::marshal<smx_synchro_t>(simcall->args[0], arg);
270 static inline sg_host_t simcall_execution_set_affinity__get__ws(smx_simcall_t simcall) {
271 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
273 static inline void simcall_execution_set_affinity__set__ws(smx_simcall_t simcall, sg_host_t arg) {
274 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
276 static inline unsigned long simcall_execution_set_affinity__get__mask(smx_simcall_t simcall) {
277 return simgrid::simix::unmarshal<unsigned long>(simcall->args[2]);
279 static inline void simcall_execution_set_affinity__set__mask(smx_simcall_t simcall, unsigned long arg) {
280 simgrid::simix::marshal<unsigned long>(simcall->args[2], arg);
283 static inline smx_synchro_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
284 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]);
286 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_synchro_t arg) {
287 simgrid::simix::marshal<smx_synchro_t>(simcall->args[0], arg);
289 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
290 return simgrid::simix::unmarshal<int>(simcall->result);
292 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
293 simgrid::simix::marshal<int>(simcall->result, result);
296 static inline smx_process_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
297 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
299 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_process_t arg) {
300 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
302 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
303 return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
305 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
306 simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
308 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
309 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
311 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
312 simgrid::simix::marshal<void*>(simcall->args[2], arg);
315 static inline smx_process_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
316 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
318 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_process_t arg) {
319 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
321 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
322 return simgrid::simix::unmarshal<int>(simcall->args[1]);
324 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
325 simgrid::simix::marshal<int>(simcall->args[1], arg);
328 static inline smx_process_t simcall_process_restart__get__process(smx_simcall_t simcall) {
329 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
331 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_process_t arg) {
332 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
334 static inline smx_process_t simcall_process_restart__get__result(smx_simcall_t simcall){
335 return simgrid::simix::unmarshal<smx_process_t>(simcall->result);
337 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_process_t result){
338 simgrid::simix::marshal<smx_process_t>(simcall->result, result);
341 static inline const char* simcall_mbox_create__get__name(smx_simcall_t simcall) {
342 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
344 static inline void simcall_mbox_create__set__name(smx_simcall_t simcall, const char* arg) {
345 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
347 static inline smx_mailbox_t simcall_mbox_create__get__result(smx_simcall_t simcall){
348 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->result);
350 static inline void simcall_mbox_create__set__result(smx_simcall_t simcall, smx_mailbox_t result){
351 simgrid::simix::marshal<smx_mailbox_t>(simcall->result, result);
354 static inline smx_mailbox_t simcall_mbox_set_receiver__get__mbox(smx_simcall_t simcall) {
355 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
357 static inline void simcall_mbox_set_receiver__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
358 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
360 static inline smx_process_t simcall_mbox_set_receiver__get__receiver(smx_simcall_t simcall) {
361 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[1]);
363 static inline void simcall_mbox_set_receiver__set__receiver(smx_simcall_t simcall, smx_process_t arg) {
364 simgrid::simix::marshal<smx_process_t>(simcall->args[1], arg);
367 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
368 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
370 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
371 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
373 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
374 return simgrid::simix::unmarshal<int>(simcall->args[1]);
376 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
377 simgrid::simix::marshal<int>(simcall->args[1], arg);
379 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
380 return simgrid::simix::unmarshal<int>(simcall->args[2]);
382 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
383 simgrid::simix::marshal<int>(simcall->args[2], arg);
385 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
386 return simgrid::simix::unmarshal<int>(simcall->args[3]);
388 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
389 simgrid::simix::marshal<int>(simcall->args[3], arg);
391 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
392 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
394 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
395 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
397 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
398 return simgrid::simix::unmarshal<void*>(simcall->args[5]);
400 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
401 simgrid::simix::marshal<void*>(simcall->args[5], arg);
403 static inline smx_synchro_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
404 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->result);
406 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_synchro_t result){
407 simgrid::simix::marshal<smx_synchro_t>(simcall->result, result);
410 static inline smx_process_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
411 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
413 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_process_t arg) {
414 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
416 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
417 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
419 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
420 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
422 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
423 return simgrid::simix::unmarshal<double>(simcall->args[2]);
425 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
426 simgrid::simix::marshal<double>(simcall->args[2], arg);
428 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
429 return simgrid::simix::unmarshal<double>(simcall->args[3]);
431 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
432 simgrid::simix::marshal<double>(simcall->args[3], arg);
434 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
435 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
437 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
438 simgrid::simix::marshal<void*>(simcall->args[4], arg);
440 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
441 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
443 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
444 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
446 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
447 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
449 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
450 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
452 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
453 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
455 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
456 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
458 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
459 return simgrid::simix::unmarshal<void*>(simcall->args[8]);
461 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
462 simgrid::simix::marshal<void*>(simcall->args[8], arg);
464 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
465 return simgrid::simix::unmarshal<double>(simcall->args[9]);
467 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
468 simgrid::simix::marshal<double>(simcall->args[9], arg);
471 static inline smx_process_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
472 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
474 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_process_t arg) {
475 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
477 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
478 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
480 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
481 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
483 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
484 return simgrid::simix::unmarshal<double>(simcall->args[2]);
486 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
487 simgrid::simix::marshal<double>(simcall->args[2], arg);
489 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
490 return simgrid::simix::unmarshal<double>(simcall->args[3]);
492 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
493 simgrid::simix::marshal<double>(simcall->args[3], arg);
495 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
496 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
498 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
499 simgrid::simix::marshal<void*>(simcall->args[4], arg);
501 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
502 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
504 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
505 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
507 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
508 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
510 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
511 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
513 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
514 return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
516 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
517 simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
519 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
520 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
522 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
523 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
525 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
526 return simgrid::simix::unmarshal<void*>(simcall->args[9]);
528 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
529 simgrid::simix::marshal<void*>(simcall->args[9], arg);
531 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
532 return simgrid::simix::unmarshal<int>(simcall->args[10]);
534 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
535 simgrid::simix::marshal<int>(simcall->args[10], arg);
537 static inline smx_synchro_t simcall_comm_isend__get__result(smx_simcall_t simcall){
538 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->result);
540 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_synchro_t result){
541 simgrid::simix::marshal<smx_synchro_t>(simcall->result, result);
544 static inline smx_process_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
545 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
547 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_process_t arg) {
548 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
550 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
551 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
553 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
554 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
556 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
557 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
559 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
560 simgrid::simix::marshal<void*>(simcall->args[2], arg);
562 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
563 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
565 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
566 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
568 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
569 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
571 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
572 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
574 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
575 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
577 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
578 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
580 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
581 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
583 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
584 simgrid::simix::marshal<void*>(simcall->args[6], arg);
586 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
587 return simgrid::simix::unmarshal<double>(simcall->args[7]);
589 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
590 simgrid::simix::marshal<double>(simcall->args[7], arg);
592 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
593 return simgrid::simix::unmarshal<double>(simcall->args[8]);
595 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
596 simgrid::simix::marshal<double>(simcall->args[8], arg);
599 static inline smx_process_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
600 return simgrid::simix::unmarshal<smx_process_t>(simcall->args[0]);
602 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_process_t arg) {
603 simgrid::simix::marshal<smx_process_t>(simcall->args[0], arg);
605 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
606 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
608 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
609 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
611 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
612 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
614 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
615 simgrid::simix::marshal<void*>(simcall->args[2], arg);
617 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
618 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
620 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
621 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
623 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
624 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
626 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
627 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
629 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
630 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
632 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
633 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
635 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
636 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
638 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
639 simgrid::simix::marshal<void*>(simcall->args[6], arg);
641 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
642 return simgrid::simix::unmarshal<double>(simcall->args[7]);
644 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
645 simgrid::simix::marshal<double>(simcall->args[7], arg);
647 static inline smx_synchro_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
648 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->result);
650 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_synchro_t result){
651 simgrid::simix::marshal<smx_synchro_t>(simcall->result, result);
654 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
655 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
657 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
658 simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
660 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
661 return simgrid::simix::unmarshal<double>(simcall->args[1]);
663 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
664 simgrid::simix::marshal<double>(simcall->args[1], arg);
666 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
667 return simgrid::simix::unmarshal<int>(simcall->result);
669 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
670 simgrid::simix::marshal<int>(simcall->result, result);
673 static inline smx_synchro_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
674 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]);
676 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_synchro_t arg) {
677 simgrid::simix::marshal<smx_synchro_t>(simcall->args[0], arg);
679 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
680 return simgrid::simix::unmarshal<double>(simcall->args[1]);
682 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
683 simgrid::simix::marshal<double>(simcall->args[1], arg);
686 static inline smx_synchro_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
687 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]);
689 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_synchro_t arg) {
690 simgrid::simix::marshal<smx_synchro_t>(simcall->args[0], arg);
692 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
693 return simgrid::simix::unmarshal<int>(simcall->result);
695 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
696 simgrid::simix::marshal<int>(simcall->result, result);
699 static inline smx_synchro_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
700 return simgrid::simix::unmarshal<smx_synchro_t*>(simcall->args[0]);
702 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_synchro_t* arg) {
703 simgrid::simix::marshal<smx_synchro_t*>(simcall->args[0], arg);
705 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
706 return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
708 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
709 simgrid::simix::marshal<size_t>(simcall->args[1], arg);
711 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
712 return simgrid::simix::unmarshal<int>(simcall->result);
714 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
715 simgrid::simix::marshal<int>(simcall->result, result);
718 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
719 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
721 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
722 simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
725 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
726 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
728 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
729 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
732 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
733 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
735 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
736 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
738 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
739 return simgrid::simix::unmarshal<int>(simcall->result);
741 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
742 simgrid::simix::marshal<int>(simcall->result, result);
745 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
746 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
748 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
749 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
752 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
753 return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
755 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
756 simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
759 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
760 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
762 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
763 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
766 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
767 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
769 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
770 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
772 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
773 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
775 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
776 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
779 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
780 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
782 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
783 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
785 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
786 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
788 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
789 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
791 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
792 return simgrid::simix::unmarshal<double>(simcall->args[2]);
794 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
795 simgrid::simix::marshal<double>(simcall->args[2], arg);
798 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
799 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
801 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
802 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
805 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
806 return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
808 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
809 simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
811 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
812 return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
814 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
815 simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
818 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
819 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
821 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
822 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
825 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
826 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
828 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
829 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
831 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
832 return simgrid::simix::unmarshal<int>(simcall->result);
834 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
835 simgrid::simix::marshal<int>(simcall->result, result);
838 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
839 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
841 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
842 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
845 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
846 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
848 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
849 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
851 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
852 return simgrid::simix::unmarshal<double>(simcall->args[1]);
854 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
855 simgrid::simix::marshal<double>(simcall->args[1], arg);
858 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
859 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
861 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
862 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
864 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
865 return simgrid::simix::unmarshal<int>(simcall->result);
867 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
868 simgrid::simix::marshal<int>(simcall->result, result);
871 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
872 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
874 static inline void simcall_file_read__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_read__get__size(smx_simcall_t simcall) {
878 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
880 static inline void simcall_file_read__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_read__get__host(smx_simcall_t simcall) {
884 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
886 static inline void simcall_file_read__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_read__get__result(smx_simcall_t simcall){
890 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
892 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
893 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
896 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
897 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
899 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
900 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
902 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
903 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
905 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
906 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
908 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
909 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
911 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
912 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
914 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
915 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
917 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
918 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
921 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
922 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
924 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
925 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
927 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
928 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
930 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
931 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
933 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
934 return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
936 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
937 simgrid::simix::marshal<smx_file_t>(simcall->result, result);
940 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
941 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
943 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
944 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
946 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
947 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
949 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
950 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
952 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
953 return simgrid::simix::unmarshal<int>(simcall->result);
955 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
956 simgrid::simix::marshal<int>(simcall->result, result);
959 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
960 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
962 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
963 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
965 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
966 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
968 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
969 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
971 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
972 return simgrid::simix::unmarshal<int>(simcall->result);
974 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
975 simgrid::simix::marshal<int>(simcall->result, result);
978 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
979 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
981 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
982 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
984 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
985 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
987 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
988 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
991 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
992 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
994 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
995 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
997 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
998 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1000 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
1001 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1004 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
1005 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1007 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1008 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1010 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
1011 return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
1013 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
1014 simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
1016 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
1017 return simgrid::simix::unmarshal<int>(simcall->args[2]);
1019 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
1020 simgrid::simix::marshal<int>(simcall->args[2], arg);
1022 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
1023 return simgrid::simix::unmarshal<int>(simcall->result);
1025 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
1026 simgrid::simix::marshal<int>(simcall->result, result);
1029 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
1030 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1032 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1033 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1035 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
1036 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
1038 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
1039 simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
1042 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
1043 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1045 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1046 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1048 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
1049 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1051 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
1052 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1054 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
1055 return simgrid::simix::unmarshal<int>(simcall->result);
1057 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
1058 simgrid::simix::marshal<int>(simcall->result, result);
1061 static inline smx_storage_t simcall_storage_get_free_size__get__storage(smx_simcall_t simcall) {
1062 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1064 static inline void simcall_storage_get_free_size__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1065 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1067 static inline sg_size_t simcall_storage_get_free_size__get__result(smx_simcall_t simcall){
1068 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1070 static inline void simcall_storage_get_free_size__set__result(smx_simcall_t simcall, sg_size_t result){
1071 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1074 static inline smx_storage_t simcall_storage_get_used_size__get__name(smx_simcall_t simcall) {
1075 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1077 static inline void simcall_storage_get_used_size__set__name(smx_simcall_t simcall, smx_storage_t arg) {
1078 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1080 static inline sg_size_t simcall_storage_get_used_size__get__result(smx_simcall_t simcall){
1081 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1083 static inline void simcall_storage_get_used_size__set__result(smx_simcall_t simcall, sg_size_t result){
1084 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1087 static inline smx_storage_t simcall_storage_get_properties__get__storage(smx_simcall_t simcall) {
1088 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1090 static inline void simcall_storage_get_properties__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1091 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1093 static inline xbt_dict_t simcall_storage_get_properties__get__result(smx_simcall_t simcall){
1094 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1096 static inline void simcall_storage_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1097 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1100 static inline smx_storage_t simcall_storage_get_content__get__storage(smx_simcall_t simcall) {
1101 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1103 static inline void simcall_storage_get_content__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1104 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1106 static inline xbt_dict_t simcall_storage_get_content__get__result(smx_simcall_t simcall){
1107 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1109 static inline void simcall_storage_get_content__set__result(smx_simcall_t simcall, xbt_dict_t result){
1110 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1113 static inline const char* simcall_asr_get_properties__get__name(smx_simcall_t simcall) {
1114 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
1116 static inline void simcall_asr_get_properties__set__name(smx_simcall_t simcall, const char* arg) {
1117 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
1119 static inline xbt_dict_t simcall_asr_get_properties__get__result(smx_simcall_t simcall){
1120 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1122 static inline void simcall_asr_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1123 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1126 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
1127 return simgrid::simix::unmarshal<int>(simcall->args[0]);
1129 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
1130 simgrid::simix::marshal<int>(simcall->args[0], arg);
1132 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
1133 return simgrid::simix::unmarshal<int>(simcall->args[1]);
1135 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
1136 simgrid::simix::marshal<int>(simcall->args[1], arg);
1138 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
1139 return simgrid::simix::unmarshal<int>(simcall->result);
1141 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1142 simgrid::simix::marshal<int>(simcall->result, result);
1145 static inline smx_synchro_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1146 return simgrid::simix::unmarshal<smx_synchro_t>(simcall->args[0]);
1148 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_synchro_t arg) {
1149 simgrid::simix::marshal<smx_synchro_t>(simcall->args[0], arg);
1151 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1152 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1154 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1155 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1158 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1159 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1161 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1162 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1165 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1166 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1168 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1169 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1172 /* The prototype of all simcall handlers, automatically generated for you */
1174 XBT_PRIVATE void simcall_HANDLER_vm_suspend(smx_simcall_t simcall, sg_host_t ind_vm);
1175 XBT_PRIVATE void simcall_HANDLER_vm_resume(smx_simcall_t simcall, sg_host_t ind_vm);
1176 XBT_PRIVATE void simcall_HANDLER_vm_shutdown(smx_simcall_t simcall, sg_host_t ind_vm);
1177 XBT_PRIVATE void simcall_HANDLER_vm_save(smx_simcall_t simcall, sg_host_t ind_vm);
1178 XBT_PRIVATE void simcall_HANDLER_vm_restore(smx_simcall_t simcall, sg_host_t ind_vm);
1179 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_process_t process);
1180 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1181 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_process_t process);
1182 XBT_PRIVATE void simcall_HANDLER_process_resume(smx_simcall_t simcall, smx_process_t process);
1183 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_process_t process, sg_host_t dest);
1184 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_process_t process, double timeout);
1185 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1186 XBT_PRIVATE smx_synchro_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound, unsigned long affinity_mask);
1187 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_synchro_t execution);
1188 XBT_PRIVATE smx_process_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_process_t process);
1189 XBT_PRIVATE smx_synchro_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);
1190 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);
1191 XBT_PRIVATE smx_synchro_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);
1192 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);
1193 XBT_PRIVATE smx_synchro_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);
1194 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1195 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_synchro_t comm, double timeout);
1196 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_synchro_t comm);
1197 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_synchro_t* comms, size_t count);
1198 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1199 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1200 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1201 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1202 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1203 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1204 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1205 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1206 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1207 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1208 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1209 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1210 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1211 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1212 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1213 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1214 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1215 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1216 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1217 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1218 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_free_size(smx_simcall_t simcall, smx_storage_t storage);
1219 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_used_size(smx_simcall_t simcall, smx_storage_t name);
1220 XBT_PRIVATE xbt_dict_t simcall_HANDLER_asr_get_properties(smx_simcall_t simcall, const char* name);
1221 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);