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 smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall) {
39 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
41 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_actor_t arg) {
42 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
45 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall) {
46 return simgrid::simix::unmarshal<int>(simcall->args[0]);
48 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg) {
49 simgrid::simix::marshal<int>(simcall->args[0], arg);
52 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall) {
53 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
55 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg) {
56 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
59 static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall) {
60 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
62 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_actor_t arg) {
63 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
66 static inline smx_actor_t simcall_process_resume__get__process(smx_simcall_t simcall) {
67 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
69 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_actor_t arg) {
70 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
73 static inline smx_actor_t simcall_process_set_host__get__process(smx_simcall_t simcall) {
74 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
76 static inline void simcall_process_set_host__set__process(smx_simcall_t simcall, smx_actor_t arg) {
77 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
79 static inline sg_host_t simcall_process_set_host__get__dest(smx_simcall_t simcall) {
80 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
82 static inline void simcall_process_set_host__set__dest(smx_simcall_t simcall, sg_host_t arg) {
83 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
86 static inline smx_actor_t simcall_process_is_suspended__get__process(smx_simcall_t simcall) {
87 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
89 static inline void simcall_process_is_suspended__set__process(smx_simcall_t simcall, smx_actor_t arg) {
90 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
92 static inline int simcall_process_is_suspended__get__result(smx_simcall_t simcall){
93 return simgrid::simix::unmarshal<int>(simcall->result);
95 static inline void simcall_process_is_suspended__set__result(smx_simcall_t simcall, int result){
96 simgrid::simix::marshal<int>(simcall->result, result);
99 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall) {
100 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
102 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg) {
103 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
105 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall) {
106 return simgrid::simix::unmarshal<double>(simcall->args[1]);
108 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg) {
109 simgrid::simix::marshal<double>(simcall->args[1], arg);
111 static inline int simcall_process_join__get__result(smx_simcall_t simcall){
112 return simgrid::simix::unmarshal<int>(simcall->result);
114 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
115 simgrid::simix::marshal<int>(simcall->result, result);
118 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall) {
119 return simgrid::simix::unmarshal<double>(simcall->args[0]);
121 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg) {
122 simgrid::simix::marshal<double>(simcall->args[0], arg);
124 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall){
125 return simgrid::simix::unmarshal<int>(simcall->result);
127 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
128 simgrid::simix::marshal<int>(simcall->result, result);
131 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall) {
132 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
134 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg) {
135 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
137 static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall) {
138 return simgrid::simix::unmarshal<double>(simcall->args[1]);
140 static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg) {
141 simgrid::simix::marshal<double>(simcall->args[1], arg);
143 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall) {
144 return simgrid::simix::unmarshal<double>(simcall->args[2]);
146 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg) {
147 simgrid::simix::marshal<double>(simcall->args[2], arg);
149 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall) {
150 return simgrid::simix::unmarshal<double>(simcall->args[3]);
152 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg) {
153 simgrid::simix::marshal<double>(simcall->args[3], arg);
155 static inline smx_activity_t simcall_execution_start__get__result(smx_simcall_t simcall){
156 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
158 static inline void simcall_execution_start__set__result(smx_simcall_t simcall, smx_activity_t result){
159 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
162 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) {
163 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
165 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) {
166 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
168 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) {
169 return simgrid::simix::unmarshal<int>(simcall->args[1]);
171 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) {
172 simgrid::simix::marshal<int>(simcall->args[1], arg);
174 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) {
175 return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
177 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) {
178 simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
180 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) {
181 return simgrid::simix::unmarshal<double*>(simcall->args[3]);
183 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) {
184 simgrid::simix::marshal<double*>(simcall->args[3], arg);
186 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) {
187 return simgrid::simix::unmarshal<double*>(simcall->args[4]);
189 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) {
190 simgrid::simix::marshal<double*>(simcall->args[4], arg);
192 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall) {
193 return simgrid::simix::unmarshal<double>(simcall->args[5]);
195 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg) {
196 simgrid::simix::marshal<double>(simcall->args[5], arg);
198 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) {
199 return simgrid::simix::unmarshal<double>(simcall->args[6]);
201 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) {
202 simgrid::simix::marshal<double>(simcall->args[6], arg);
204 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) {
205 return simgrid::simix::unmarshal<double>(simcall->args[7]);
207 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) {
208 simgrid::simix::marshal<double>(simcall->args[7], arg);
210 static inline smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
211 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
213 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_activity_t result){
214 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
217 static inline smx_activity_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
218 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
220 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
221 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
224 static inline smx_activity_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
225 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
227 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
228 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
230 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
231 return simgrid::simix::unmarshal<double>(simcall->args[1]);
233 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
234 simgrid::simix::marshal<double>(simcall->args[1], arg);
237 static inline smx_activity_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
238 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
240 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
241 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
243 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
244 return simgrid::simix::unmarshal<double>(simcall->args[1]);
246 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
247 simgrid::simix::marshal<double>(simcall->args[1], arg);
250 static inline smx_activity_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
251 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
253 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
254 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
256 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
257 return simgrid::simix::unmarshal<int>(simcall->result);
259 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
260 simgrid::simix::marshal<int>(simcall->result, result);
263 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
264 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
266 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg) {
267 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
269 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
270 return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
272 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
273 simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
275 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
276 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
278 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
279 simgrid::simix::marshal<void*>(simcall->args[2], arg);
282 static inline smx_actor_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
283 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
285 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_actor_t arg) {
286 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
288 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
289 return simgrid::simix::unmarshal<int>(simcall->args[1]);
291 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
292 simgrid::simix::marshal<int>(simcall->args[1], arg);
295 static inline smx_actor_t simcall_process_restart__get__process(smx_simcall_t simcall) {
296 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
298 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_actor_t arg) {
299 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
301 static inline smx_actor_t simcall_process_restart__get__result(smx_simcall_t simcall){
302 return simgrid::simix::unmarshal<smx_actor_t>(simcall->result);
304 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_actor_t result){
305 simgrid::simix::marshal<smx_actor_t>(simcall->result, result);
308 static inline const char* simcall_mbox_create__get__name(smx_simcall_t simcall) {
309 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
311 static inline void simcall_mbox_create__set__name(smx_simcall_t simcall, const char* arg) {
312 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
314 static inline smx_mailbox_t simcall_mbox_create__get__result(smx_simcall_t simcall){
315 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->result);
317 static inline void simcall_mbox_create__set__result(smx_simcall_t simcall, smx_mailbox_t result){
318 simgrid::simix::marshal<smx_mailbox_t>(simcall->result, result);
321 static inline smx_mailbox_t simcall_mbox_set_receiver__get__mbox(smx_simcall_t simcall) {
322 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
324 static inline void simcall_mbox_set_receiver__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
325 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
327 static inline smx_actor_t simcall_mbox_set_receiver__get__receiver(smx_simcall_t simcall) {
328 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[1]);
330 static inline void simcall_mbox_set_receiver__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
331 simgrid::simix::marshal<smx_actor_t>(simcall->args[1], arg);
334 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
335 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
337 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
338 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
340 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
341 return simgrid::simix::unmarshal<int>(simcall->args[1]);
343 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
344 simgrid::simix::marshal<int>(simcall->args[1], arg);
346 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
347 return simgrid::simix::unmarshal<int>(simcall->args[2]);
349 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
350 simgrid::simix::marshal<int>(simcall->args[2], arg);
352 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
353 return simgrid::simix::unmarshal<int>(simcall->args[3]);
355 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
356 simgrid::simix::marshal<int>(simcall->args[3], arg);
358 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
359 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
361 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
362 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
364 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
365 return simgrid::simix::unmarshal<void*>(simcall->args[5]);
367 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
368 simgrid::simix::marshal<void*>(simcall->args[5], arg);
370 static inline smx_activity_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
371 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
373 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_activity_t result){
374 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
377 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
378 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
380 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
381 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
383 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
384 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
386 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
387 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
389 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
390 return simgrid::simix::unmarshal<double>(simcall->args[2]);
392 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
393 simgrid::simix::marshal<double>(simcall->args[2], arg);
395 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
396 return simgrid::simix::unmarshal<double>(simcall->args[3]);
398 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
399 simgrid::simix::marshal<double>(simcall->args[3], arg);
401 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
402 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
404 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
405 simgrid::simix::marshal<void*>(simcall->args[4], arg);
407 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
408 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
410 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
411 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
413 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
414 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
416 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
417 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
419 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
420 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
422 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
423 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
425 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
426 return simgrid::simix::unmarshal<void*>(simcall->args[8]);
428 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
429 simgrid::simix::marshal<void*>(simcall->args[8], arg);
431 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
432 return simgrid::simix::unmarshal<double>(simcall->args[9]);
434 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
435 simgrid::simix::marshal<double>(simcall->args[9], arg);
438 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
439 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
441 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
442 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
444 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
445 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
447 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
448 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
450 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
451 return simgrid::simix::unmarshal<double>(simcall->args[2]);
453 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
454 simgrid::simix::marshal<double>(simcall->args[2], arg);
456 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
457 return simgrid::simix::unmarshal<double>(simcall->args[3]);
459 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
460 simgrid::simix::marshal<double>(simcall->args[3], arg);
462 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
463 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
465 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
466 simgrid::simix::marshal<void*>(simcall->args[4], arg);
468 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
469 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
471 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
472 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
474 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
475 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
477 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
478 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
480 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
481 return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
483 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
484 simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
486 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
487 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
489 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
490 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
492 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
493 return simgrid::simix::unmarshal<void*>(simcall->args[9]);
495 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
496 simgrid::simix::marshal<void*>(simcall->args[9], arg);
498 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
499 return simgrid::simix::unmarshal<int>(simcall->args[10]);
501 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
502 simgrid::simix::marshal<int>(simcall->args[10], arg);
504 static inline smx_activity_t simcall_comm_isend__get__result(smx_simcall_t simcall){
505 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
507 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_activity_t result){
508 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
511 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
512 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
514 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
515 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
517 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
518 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
520 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
521 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
523 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
524 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
526 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
527 simgrid::simix::marshal<void*>(simcall->args[2], arg);
529 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
530 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
532 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
533 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
535 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
536 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
538 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
539 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
541 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
542 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
544 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
545 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
547 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
548 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
550 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
551 simgrid::simix::marshal<void*>(simcall->args[6], arg);
553 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
554 return simgrid::simix::unmarshal<double>(simcall->args[7]);
556 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
557 simgrid::simix::marshal<double>(simcall->args[7], arg);
559 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
560 return simgrid::simix::unmarshal<double>(simcall->args[8]);
562 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
563 simgrid::simix::marshal<double>(simcall->args[8], arg);
566 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
567 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
569 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
570 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
572 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
573 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
575 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
576 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
578 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
579 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
581 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
582 simgrid::simix::marshal<void*>(simcall->args[2], arg);
584 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
585 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
587 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
588 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
590 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
591 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
593 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
594 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
596 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
597 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
599 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
600 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
602 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
603 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
605 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
606 simgrid::simix::marshal<void*>(simcall->args[6], arg);
608 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
609 return simgrid::simix::unmarshal<double>(simcall->args[7]);
611 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
612 simgrid::simix::marshal<double>(simcall->args[7], arg);
614 static inline smx_activity_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
615 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
617 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_activity_t result){
618 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
621 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
622 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
624 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
625 simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
627 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
628 return simgrid::simix::unmarshal<double>(simcall->args[1]);
630 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
631 simgrid::simix::marshal<double>(simcall->args[1], arg);
633 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
634 return simgrid::simix::unmarshal<int>(simcall->result);
636 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
637 simgrid::simix::marshal<int>(simcall->result, result);
640 static inline smx_activity_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
641 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
643 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
644 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
646 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
647 return simgrid::simix::unmarshal<double>(simcall->args[1]);
649 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
650 simgrid::simix::marshal<double>(simcall->args[1], arg);
653 static inline smx_activity_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
654 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
656 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
657 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
659 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
660 return simgrid::simix::unmarshal<int>(simcall->result);
662 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
663 simgrid::simix::marshal<int>(simcall->result, result);
666 static inline smx_activity_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
667 return simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]);
669 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_activity_t* arg) {
670 simgrid::simix::marshal<smx_activity_t*>(simcall->args[0], arg);
672 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
673 return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
675 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
676 simgrid::simix::marshal<size_t>(simcall->args[1], arg);
678 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
679 return simgrid::simix::unmarshal<int>(simcall->result);
681 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
682 simgrid::simix::marshal<int>(simcall->result, result);
685 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
686 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
688 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
689 simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
692 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
693 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
695 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
696 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
699 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
700 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
702 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
703 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
705 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
706 return simgrid::simix::unmarshal<int>(simcall->result);
708 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
709 simgrid::simix::marshal<int>(simcall->result, result);
712 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
713 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
715 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
716 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
719 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
720 return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
722 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
723 simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
726 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
727 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
729 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
730 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
733 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
734 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
736 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
737 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
739 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
740 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
742 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
743 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
746 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
747 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
749 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
750 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
752 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
753 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
755 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
756 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
758 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
759 return simgrid::simix::unmarshal<double>(simcall->args[2]);
761 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
762 simgrid::simix::marshal<double>(simcall->args[2], arg);
765 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
766 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
768 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
769 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
772 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
773 return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
775 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
776 simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
778 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
779 return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
781 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
782 simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
785 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
786 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
788 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
789 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
792 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
793 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
795 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
796 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
798 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
799 return simgrid::simix::unmarshal<int>(simcall->result);
801 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
802 simgrid::simix::marshal<int>(simcall->result, result);
805 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
806 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
808 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
809 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
812 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
813 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
815 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
816 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
818 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
819 return simgrid::simix::unmarshal<double>(simcall->args[1]);
821 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
822 simgrid::simix::marshal<double>(simcall->args[1], arg);
825 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
826 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
828 static inline void simcall_sem_get_capacity__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_get_capacity__get__result(smx_simcall_t simcall){
832 return simgrid::simix::unmarshal<int>(simcall->result);
834 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
835 simgrid::simix::marshal<int>(simcall->result, result);
838 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
839 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
841 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, smx_file_t arg) {
842 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
844 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall) {
845 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
847 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg) {
848 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
850 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall) {
851 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
853 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg) {
854 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
856 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
857 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
859 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
860 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
863 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
864 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
866 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
867 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
869 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
870 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
872 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
873 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
875 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
876 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
878 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
879 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
881 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
882 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
884 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
885 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
888 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
889 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
891 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
892 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
894 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
895 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
897 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
898 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
900 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
901 return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
903 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
904 simgrid::simix::marshal<smx_file_t>(simcall->result, result);
907 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
908 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
910 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
911 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
913 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
914 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
916 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
917 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
919 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
920 return simgrid::simix::unmarshal<int>(simcall->result);
922 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
923 simgrid::simix::marshal<int>(simcall->result, result);
926 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
927 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
929 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
930 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
932 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
933 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
935 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
936 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
938 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
939 return simgrid::simix::unmarshal<int>(simcall->result);
941 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
942 simgrid::simix::marshal<int>(simcall->result, result);
945 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
946 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
948 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
949 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
951 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
952 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
954 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
955 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
958 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
959 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
961 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
962 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
964 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
965 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
967 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
968 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
971 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
972 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
974 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
975 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
977 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
978 return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
980 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
981 simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
983 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
984 return simgrid::simix::unmarshal<int>(simcall->args[2]);
986 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
987 simgrid::simix::marshal<int>(simcall->args[2], arg);
989 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
990 return simgrid::simix::unmarshal<int>(simcall->result);
992 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
993 simgrid::simix::marshal<int>(simcall->result, result);
996 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
997 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
999 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1000 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1002 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
1003 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
1005 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
1006 simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
1009 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
1010 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1012 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1013 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1015 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
1016 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1018 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
1019 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1021 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
1022 return simgrid::simix::unmarshal<int>(simcall->result);
1024 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
1025 simgrid::simix::marshal<int>(simcall->result, result);
1028 static inline smx_storage_t simcall_storage_get_free_size__get__storage(smx_simcall_t simcall) {
1029 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1031 static inline void simcall_storage_get_free_size__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1032 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1034 static inline sg_size_t simcall_storage_get_free_size__get__result(smx_simcall_t simcall){
1035 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1037 static inline void simcall_storage_get_free_size__set__result(smx_simcall_t simcall, sg_size_t result){
1038 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1041 static inline smx_storage_t simcall_storage_get_used_size__get__name(smx_simcall_t simcall) {
1042 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1044 static inline void simcall_storage_get_used_size__set__name(smx_simcall_t simcall, smx_storage_t arg) {
1045 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1047 static inline sg_size_t simcall_storage_get_used_size__get__result(smx_simcall_t simcall){
1048 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1050 static inline void simcall_storage_get_used_size__set__result(smx_simcall_t simcall, sg_size_t result){
1051 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1054 static inline smx_storage_t simcall_storage_get_properties__get__storage(smx_simcall_t simcall) {
1055 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1057 static inline void simcall_storage_get_properties__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1058 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1060 static inline xbt_dict_t simcall_storage_get_properties__get__result(smx_simcall_t simcall){
1061 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1063 static inline void simcall_storage_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1064 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1067 static inline smx_storage_t simcall_storage_get_content__get__storage(smx_simcall_t simcall) {
1068 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1070 static inline void simcall_storage_get_content__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1071 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1073 static inline xbt_dict_t simcall_storage_get_content__get__result(smx_simcall_t simcall){
1074 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1076 static inline void simcall_storage_get_content__set__result(smx_simcall_t simcall, xbt_dict_t result){
1077 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1080 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
1081 return simgrid::simix::unmarshal<int>(simcall->args[0]);
1083 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
1084 simgrid::simix::marshal<int>(simcall->args[0], arg);
1086 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
1087 return simgrid::simix::unmarshal<int>(simcall->args[1]);
1089 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
1090 simgrid::simix::marshal<int>(simcall->args[1], arg);
1092 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
1093 return simgrid::simix::unmarshal<int>(simcall->result);
1095 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1096 simgrid::simix::marshal<int>(simcall->result, result);
1099 static inline smx_activity_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1100 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
1102 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_activity_t arg) {
1103 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
1105 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1106 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1108 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1109 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1112 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1113 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1115 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1116 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1119 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1120 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1122 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1123 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1126 /* The prototype of all simcall handlers, automatically generated for you */
1128 XBT_PRIVATE void simcall_HANDLER_vm_suspend(smx_simcall_t simcall, sg_host_t ind_vm);
1129 XBT_PRIVATE void simcall_HANDLER_vm_shutdown(smx_simcall_t simcall, sg_host_t ind_vm);
1130 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process);
1131 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1132 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1133 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_actor_t process, sg_host_t dest);
1134 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1135 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1136 XBT_PRIVATE smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound);
1137 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t execution);
1138 XBT_PRIVATE smx_actor_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_actor_t process);
1139 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);
1140 XBT_PRIVATE void simcall_HANDLER_comm_send(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout);
1141 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_clean_func_t clean_fun, simix_copy_data_func_t copy_data_fun, void* data, int detached);
1142 XBT_PRIVATE void simcall_HANDLER_comm_recv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout, double rate);
1143 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double rate);
1144 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1145 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t comm, double timeout);
1146 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_activity_t comm);
1147 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_activity_t* comms, size_t count);
1148 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1149 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1150 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1151 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1152 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1153 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1154 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1155 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1156 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1157 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1158 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1159 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1160 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1161 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1162 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1163 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1164 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1165 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1166 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1167 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1168 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_free_size(smx_simcall_t simcall, smx_storage_t storage);
1169 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_used_size(smx_simcall_t simcall, smx_storage_t name);
1170 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);