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 /* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */
8 /**********************************************************************/
11 * Note that the name comes from http://en.wikipedia.org/wiki/Popping
12 * Indeed, the control flow is doing a strange dance in there.
14 * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
17 #include "src/simix/popping_private.h"
18 static inline smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall) {
19 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
21 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_actor_t arg) {
22 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
25 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall) {
26 return simgrid::simix::unmarshal<int>(simcall->args[0]);
28 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg) {
29 simgrid::simix::marshal<int>(simcall->args[0], arg);
32 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall) {
33 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
35 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg) {
36 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
39 static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall) {
40 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
42 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_actor_t arg) {
43 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
46 static inline smx_actor_t simcall_process_resume__get__process(smx_simcall_t simcall) {
47 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
49 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_actor_t arg) {
50 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
53 static inline smx_actor_t simcall_process_set_host__get__process(smx_simcall_t simcall) {
54 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
56 static inline void simcall_process_set_host__set__process(smx_simcall_t simcall, smx_actor_t arg) {
57 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
59 static inline sg_host_t simcall_process_set_host__get__dest(smx_simcall_t simcall) {
60 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
62 static inline void simcall_process_set_host__set__dest(smx_simcall_t simcall, sg_host_t arg) {
63 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
66 static inline smx_actor_t simcall_process_is_suspended__get__process(smx_simcall_t simcall) {
67 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
69 static inline void simcall_process_is_suspended__set__process(smx_simcall_t simcall, smx_actor_t arg) {
70 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
72 static inline int simcall_process_is_suspended__get__result(smx_simcall_t simcall){
73 return simgrid::simix::unmarshal<int>(simcall->result);
75 static inline void simcall_process_is_suspended__set__result(smx_simcall_t simcall, int result){
76 simgrid::simix::marshal<int>(simcall->result, result);
79 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall) {
80 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
82 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg) {
83 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
85 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall) {
86 return simgrid::simix::unmarshal<double>(simcall->args[1]);
88 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg) {
89 simgrid::simix::marshal<double>(simcall->args[1], arg);
91 static inline int simcall_process_join__get__result(smx_simcall_t simcall){
92 return simgrid::simix::unmarshal<int>(simcall->result);
94 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
95 simgrid::simix::marshal<int>(simcall->result, result);
98 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall) {
99 return simgrid::simix::unmarshal<double>(simcall->args[0]);
101 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg) {
102 simgrid::simix::marshal<double>(simcall->args[0], arg);
104 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall){
105 return simgrid::simix::unmarshal<int>(simcall->result);
107 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
108 simgrid::simix::marshal<int>(simcall->result, result);
111 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall) {
112 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
114 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg) {
115 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
117 static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall) {
118 return simgrid::simix::unmarshal<double>(simcall->args[1]);
120 static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg) {
121 simgrid::simix::marshal<double>(simcall->args[1], arg);
123 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall) {
124 return simgrid::simix::unmarshal<double>(simcall->args[2]);
126 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg) {
127 simgrid::simix::marshal<double>(simcall->args[2], arg);
129 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall) {
130 return simgrid::simix::unmarshal<double>(simcall->args[3]);
132 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg) {
133 simgrid::simix::marshal<double>(simcall->args[3], arg);
135 static inline smx_activity_t simcall_execution_start__get__result(smx_simcall_t simcall){
136 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
138 static inline void simcall_execution_start__set__result(smx_simcall_t simcall, smx_activity_t result){
139 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
142 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) {
143 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
145 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) {
146 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
148 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) {
149 return simgrid::simix::unmarshal<int>(simcall->args[1]);
151 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) {
152 simgrid::simix::marshal<int>(simcall->args[1], arg);
154 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) {
155 return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
157 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) {
158 simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
160 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) {
161 return simgrid::simix::unmarshal<double*>(simcall->args[3]);
163 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) {
164 simgrid::simix::marshal<double*>(simcall->args[3], arg);
166 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) {
167 return simgrid::simix::unmarshal<double*>(simcall->args[4]);
169 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) {
170 simgrid::simix::marshal<double*>(simcall->args[4], arg);
172 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall) {
173 return simgrid::simix::unmarshal<double>(simcall->args[5]);
175 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg) {
176 simgrid::simix::marshal<double>(simcall->args[5], arg);
178 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) {
179 return simgrid::simix::unmarshal<double>(simcall->args[6]);
181 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) {
182 simgrid::simix::marshal<double>(simcall->args[6], arg);
184 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) {
185 return simgrid::simix::unmarshal<double>(simcall->args[7]);
187 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) {
188 simgrid::simix::marshal<double>(simcall->args[7], arg);
190 static inline smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
191 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
193 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_activity_t result){
194 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
197 static inline smx_activity_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
198 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
200 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
201 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
204 static inline smx_activity_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
205 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
207 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
208 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
210 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
211 return simgrid::simix::unmarshal<double>(simcall->args[1]);
213 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
214 simgrid::simix::marshal<double>(simcall->args[1], arg);
217 static inline smx_activity_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
218 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
220 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
221 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
223 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
224 return simgrid::simix::unmarshal<double>(simcall->args[1]);
226 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
227 simgrid::simix::marshal<double>(simcall->args[1], arg);
230 static inline smx_activity_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
231 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
233 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
234 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
236 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
237 return simgrid::simix::unmarshal<int>(simcall->result);
239 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
240 simgrid::simix::marshal<int>(simcall->result, result);
243 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
244 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
246 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg) {
247 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
249 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
250 return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
252 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
253 simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
255 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
256 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
258 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
259 simgrid::simix::marshal<void*>(simcall->args[2], arg);
262 static inline smx_actor_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
263 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
265 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_actor_t arg) {
266 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
268 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
269 return simgrid::simix::unmarshal<int>(simcall->args[1]);
271 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
272 simgrid::simix::marshal<int>(simcall->args[1], arg);
275 static inline smx_actor_t simcall_process_restart__get__process(smx_simcall_t simcall) {
276 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
278 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_actor_t arg) {
279 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
281 static inline smx_actor_t simcall_process_restart__get__result(smx_simcall_t simcall){
282 return simgrid::simix::unmarshal<smx_actor_t>(simcall->result);
284 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_actor_t result){
285 simgrid::simix::marshal<smx_actor_t>(simcall->result, result);
288 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
289 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
291 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
292 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
294 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
295 return simgrid::simix::unmarshal<int>(simcall->args[1]);
297 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
298 simgrid::simix::marshal<int>(simcall->args[1], arg);
300 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
301 return simgrid::simix::unmarshal<int>(simcall->args[2]);
303 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
304 simgrid::simix::marshal<int>(simcall->args[2], arg);
306 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
307 return simgrid::simix::unmarshal<int>(simcall->args[3]);
309 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
310 simgrid::simix::marshal<int>(simcall->args[3], arg);
312 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
313 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
315 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
316 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
318 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
319 return simgrid::simix::unmarshal<void*>(simcall->args[5]);
321 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
322 simgrid::simix::marshal<void*>(simcall->args[5], arg);
324 static inline smx_activity_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
325 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
327 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_activity_t result){
328 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
331 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
332 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
334 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
335 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
337 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
338 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
340 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
341 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
343 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
344 return simgrid::simix::unmarshal<double>(simcall->args[2]);
346 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
347 simgrid::simix::marshal<double>(simcall->args[2], arg);
349 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
350 return simgrid::simix::unmarshal<double>(simcall->args[3]);
352 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
353 simgrid::simix::marshal<double>(simcall->args[3], arg);
355 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
356 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
358 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
359 simgrid::simix::marshal<void*>(simcall->args[4], arg);
361 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
362 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
364 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
365 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
367 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
368 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
370 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
371 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
373 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
374 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
376 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
377 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
379 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
380 return simgrid::simix::unmarshal<void*>(simcall->args[8]);
382 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
383 simgrid::simix::marshal<void*>(simcall->args[8], arg);
385 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
386 return simgrid::simix::unmarshal<double>(simcall->args[9]);
388 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
389 simgrid::simix::marshal<double>(simcall->args[9], arg);
392 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
393 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
395 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
396 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
398 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
399 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
401 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
402 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
404 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
405 return simgrid::simix::unmarshal<double>(simcall->args[2]);
407 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
408 simgrid::simix::marshal<double>(simcall->args[2], arg);
410 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
411 return simgrid::simix::unmarshal<double>(simcall->args[3]);
413 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
414 simgrid::simix::marshal<double>(simcall->args[3], arg);
416 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
417 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
419 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
420 simgrid::simix::marshal<void*>(simcall->args[4], arg);
422 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
423 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
425 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
426 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
428 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
429 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
431 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
432 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
434 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
435 return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
437 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
438 simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
440 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
441 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
443 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
444 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
446 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
447 return simgrid::simix::unmarshal<void*>(simcall->args[9]);
449 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
450 simgrid::simix::marshal<void*>(simcall->args[9], arg);
452 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
453 return simgrid::simix::unmarshal<int>(simcall->args[10]);
455 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
456 simgrid::simix::marshal<int>(simcall->args[10], arg);
458 static inline smx_activity_t simcall_comm_isend__get__result(smx_simcall_t simcall){
459 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
461 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_activity_t result){
462 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
465 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
466 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
468 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
469 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
471 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
472 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
474 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
475 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
477 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
478 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
480 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
481 simgrid::simix::marshal<void*>(simcall->args[2], arg);
483 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
484 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
486 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
487 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
489 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
490 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
492 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
493 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
495 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
496 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
498 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
499 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
501 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
502 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
504 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
505 simgrid::simix::marshal<void*>(simcall->args[6], arg);
507 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
508 return simgrid::simix::unmarshal<double>(simcall->args[7]);
510 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
511 simgrid::simix::marshal<double>(simcall->args[7], arg);
513 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
514 return simgrid::simix::unmarshal<double>(simcall->args[8]);
516 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
517 simgrid::simix::marshal<double>(simcall->args[8], arg);
520 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
521 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
523 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
524 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
526 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
527 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
529 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
530 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
532 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
533 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
535 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
536 simgrid::simix::marshal<void*>(simcall->args[2], arg);
538 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
539 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
541 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
542 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
544 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
545 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
547 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
548 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
550 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
551 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
553 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
554 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
556 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
557 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
559 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
560 simgrid::simix::marshal<void*>(simcall->args[6], arg);
562 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
563 return simgrid::simix::unmarshal<double>(simcall->args[7]);
565 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
566 simgrid::simix::marshal<double>(simcall->args[7], arg);
568 static inline smx_activity_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
569 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
571 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_activity_t result){
572 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
575 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
576 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
578 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
579 simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
581 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
582 return simgrid::simix::unmarshal<double>(simcall->args[1]);
584 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
585 simgrid::simix::marshal<double>(simcall->args[1], arg);
587 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
588 return simgrid::simix::unmarshal<int>(simcall->result);
590 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
591 simgrid::simix::marshal<int>(simcall->result, result);
594 static inline smx_activity_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
595 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
597 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
598 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
600 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
601 return simgrid::simix::unmarshal<double>(simcall->args[1]);
603 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
604 simgrid::simix::marshal<double>(simcall->args[1], arg);
607 static inline smx_activity_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
608 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
610 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
611 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
613 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
614 return simgrid::simix::unmarshal<int>(simcall->result);
616 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
617 simgrid::simix::marshal<int>(simcall->result, result);
620 static inline smx_activity_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
621 return simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]);
623 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_activity_t* arg) {
624 simgrid::simix::marshal<smx_activity_t*>(simcall->args[0], arg);
626 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
627 return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
629 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
630 simgrid::simix::marshal<size_t>(simcall->args[1], arg);
632 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
633 return simgrid::simix::unmarshal<int>(simcall->result);
635 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
636 simgrid::simix::marshal<int>(simcall->result, result);
639 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
640 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
642 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
643 simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
646 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
647 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
649 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
650 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
653 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
654 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
656 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
657 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
659 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
660 return simgrid::simix::unmarshal<int>(simcall->result);
662 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
663 simgrid::simix::marshal<int>(simcall->result, result);
666 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
667 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
669 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
670 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
673 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
674 return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
676 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
677 simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
680 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
681 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
683 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
684 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
687 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
688 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
690 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
691 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
693 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
694 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
696 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
697 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
700 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
701 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
703 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
704 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
706 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
707 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
709 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
710 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
712 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
713 return simgrid::simix::unmarshal<double>(simcall->args[2]);
715 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
716 simgrid::simix::marshal<double>(simcall->args[2], arg);
719 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
720 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
722 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
723 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
726 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
727 return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
729 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
730 simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
732 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
733 return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
735 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
736 simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
739 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
740 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
742 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
743 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
746 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
747 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
749 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
750 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
752 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
753 return simgrid::simix::unmarshal<int>(simcall->result);
755 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
756 simgrid::simix::marshal<int>(simcall->result, result);
759 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
760 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
762 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
763 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
766 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
767 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
769 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
770 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
772 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
773 return simgrid::simix::unmarshal<double>(simcall->args[1]);
775 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
776 simgrid::simix::marshal<double>(simcall->args[1], arg);
779 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
780 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
782 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
783 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
785 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
786 return simgrid::simix::unmarshal<int>(simcall->result);
788 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
789 simgrid::simix::marshal<int>(simcall->result, result);
792 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
793 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
795 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, smx_file_t arg) {
796 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
798 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall) {
799 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
801 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg) {
802 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
804 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall) {
805 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
807 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg) {
808 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
810 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
811 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
813 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
814 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
817 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
818 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
820 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
821 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
823 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
824 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
826 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
827 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
829 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
830 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
832 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
833 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
835 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
836 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
838 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
839 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
842 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
843 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
845 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
846 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
848 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
849 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
851 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
852 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
854 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
855 return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
857 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
858 simgrid::simix::marshal<smx_file_t>(simcall->result, result);
861 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
862 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
864 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
865 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
867 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
868 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
870 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
871 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
873 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
874 return simgrid::simix::unmarshal<int>(simcall->result);
876 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
877 simgrid::simix::marshal<int>(simcall->result, result);
880 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
881 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
883 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
884 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
886 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
887 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
889 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
890 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
892 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
893 return simgrid::simix::unmarshal<int>(simcall->result);
895 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
896 simgrid::simix::marshal<int>(simcall->result, result);
899 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
900 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
902 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
903 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
905 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
906 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
908 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
909 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
912 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
913 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
915 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
916 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
918 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
919 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
921 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
922 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
925 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
926 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
928 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
929 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
931 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
932 return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
934 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
935 simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
937 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
938 return simgrid::simix::unmarshal<int>(simcall->args[2]);
940 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
941 simgrid::simix::marshal<int>(simcall->args[2], arg);
943 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
944 return simgrid::simix::unmarshal<int>(simcall->result);
946 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
947 simgrid::simix::marshal<int>(simcall->result, result);
950 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
951 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
953 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
954 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
956 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
957 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
959 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
960 simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
963 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
964 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
966 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
967 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
969 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
970 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
972 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
973 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
975 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
976 return simgrid::simix::unmarshal<int>(simcall->result);
978 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
979 simgrid::simix::marshal<int>(simcall->result, result);
982 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
983 return simgrid::simix::unmarshal<int>(simcall->args[0]);
985 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
986 simgrid::simix::marshal<int>(simcall->args[0], arg);
988 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
989 return simgrid::simix::unmarshal<int>(simcall->args[1]);
991 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
992 simgrid::simix::marshal<int>(simcall->args[1], arg);
994 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
995 return simgrid::simix::unmarshal<int>(simcall->result);
997 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
998 simgrid::simix::marshal<int>(simcall->result, result);
1001 static inline smx_activity_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1002 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
1004 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_activity_t arg) {
1005 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
1007 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1008 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1010 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1011 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1014 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1015 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1017 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1018 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1021 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1022 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1024 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1025 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1028 /* The prototype of all simcall handlers, automatically generated for you */
1030 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process);
1031 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1032 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1033 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_actor_t process, sg_host_t dest);
1034 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1035 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1036 XBT_PRIVATE smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound);
1037 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t execution);
1038 XBT_PRIVATE smx_actor_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_actor_t process);
1039 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);
1040 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);
1041 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);
1042 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);
1043 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);
1044 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1045 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t comm, double timeout);
1046 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_activity_t comm);
1047 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_activity_t* comms, size_t count);
1048 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1049 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1050 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1051 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1052 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1053 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1054 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1055 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1056 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1057 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1058 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1059 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1060 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1061 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1062 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1063 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1064 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1065 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1066 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1067 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1068 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);