1 /**********************************************************************/
2 /* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
4 /* DO NOT EVER CHANGE THIS FILE */
6 /* change simcalls specification in src/simix/simcalls.in */
7 /**********************************************************************/
10 * Note that the name comes from http://en.wikipedia.org/wiki/Popping
11 * Indeed, the control flow is doing a strange dance in there.
13 * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
16 #include "src/simix/popping_private.h"
17 static inline sg_host_t simcall_vm_suspend__get__ind_vm(smx_simcall_t simcall) {
18 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
20 static inline void simcall_vm_suspend__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) {
21 simgrid::simix::marshal<sg_host_t>(simcall->args[0], arg);
24 static inline sg_host_t simcall_vm_resume__get__ind_vm(smx_simcall_t simcall) {
25 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
27 static inline void simcall_vm_resume__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) {
28 simgrid::simix::marshal<sg_host_t>(simcall->args[0], arg);
31 static inline sg_host_t simcall_vm_shutdown__get__ind_vm(smx_simcall_t simcall) {
32 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
34 static inline void simcall_vm_shutdown__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) {
35 simgrid::simix::marshal<sg_host_t>(simcall->args[0], arg);
38 static inline sg_host_t simcall_vm_save__get__ind_vm(smx_simcall_t simcall) {
39 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[0]);
41 static inline void simcall_vm_save__set__ind_vm(smx_simcall_t simcall, sg_host_t arg) {
42 simgrid::simix::marshal<sg_host_t>(simcall->args[0], arg);
45 static inline smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall) {
46 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
48 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_actor_t arg) {
49 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
52 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall) {
53 return simgrid::simix::unmarshal<int>(simcall->args[0]);
55 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg) {
56 simgrid::simix::marshal<int>(simcall->args[0], arg);
59 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall) {
60 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
62 static inline void simcall_process_cleanup__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_suspend__get__process(smx_simcall_t simcall) {
67 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
69 static inline void simcall_process_suspend__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_resume__get__process(smx_simcall_t simcall) {
74 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
76 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_actor_t arg) {
77 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
80 static inline smx_actor_t simcall_process_set_host__get__process(smx_simcall_t simcall) {
81 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
83 static inline void simcall_process_set_host__set__process(smx_simcall_t simcall, smx_actor_t arg) {
84 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
86 static inline sg_host_t simcall_process_set_host__get__dest(smx_simcall_t simcall) {
87 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
89 static inline void simcall_process_set_host__set__dest(smx_simcall_t simcall, sg_host_t arg) {
90 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
93 static inline smx_actor_t simcall_process_is_suspended__get__process(smx_simcall_t simcall) {
94 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
96 static inline void simcall_process_is_suspended__set__process(smx_simcall_t simcall, smx_actor_t arg) {
97 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
99 static inline int simcall_process_is_suspended__get__result(smx_simcall_t simcall){
100 return simgrid::simix::unmarshal<int>(simcall->result);
102 static inline void simcall_process_is_suspended__set__result(smx_simcall_t simcall, int result){
103 simgrid::simix::marshal<int>(simcall->result, result);
106 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall) {
107 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
109 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg) {
110 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
112 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall) {
113 return simgrid::simix::unmarshal<double>(simcall->args[1]);
115 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg) {
116 simgrid::simix::marshal<double>(simcall->args[1], arg);
118 static inline int simcall_process_join__get__result(smx_simcall_t simcall){
119 return simgrid::simix::unmarshal<int>(simcall->result);
121 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
122 simgrid::simix::marshal<int>(simcall->result, result);
125 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall) {
126 return simgrid::simix::unmarshal<double>(simcall->args[0]);
128 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg) {
129 simgrid::simix::marshal<double>(simcall->args[0], arg);
131 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall){
132 return simgrid::simix::unmarshal<int>(simcall->result);
134 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
135 simgrid::simix::marshal<int>(simcall->result, result);
138 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall) {
139 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
141 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg) {
142 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
144 static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall) {
145 return simgrid::simix::unmarshal<double>(simcall->args[1]);
147 static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg) {
148 simgrid::simix::marshal<double>(simcall->args[1], arg);
150 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall) {
151 return simgrid::simix::unmarshal<double>(simcall->args[2]);
153 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg) {
154 simgrid::simix::marshal<double>(simcall->args[2], arg);
156 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall) {
157 return simgrid::simix::unmarshal<double>(simcall->args[3]);
159 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg) {
160 simgrid::simix::marshal<double>(simcall->args[3], arg);
162 static inline smx_activity_t simcall_execution_start__get__result(smx_simcall_t simcall){
163 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
165 static inline void simcall_execution_start__set__result(smx_simcall_t simcall, smx_activity_t result){
166 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
169 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) {
170 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
172 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) {
173 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
175 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) {
176 return simgrid::simix::unmarshal<int>(simcall->args[1]);
178 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) {
179 simgrid::simix::marshal<int>(simcall->args[1], arg);
181 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) {
182 return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
184 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) {
185 simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
187 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) {
188 return simgrid::simix::unmarshal<double*>(simcall->args[3]);
190 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) {
191 simgrid::simix::marshal<double*>(simcall->args[3], arg);
193 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) {
194 return simgrid::simix::unmarshal<double*>(simcall->args[4]);
196 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) {
197 simgrid::simix::marshal<double*>(simcall->args[4], arg);
199 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall) {
200 return simgrid::simix::unmarshal<double>(simcall->args[5]);
202 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg) {
203 simgrid::simix::marshal<double>(simcall->args[5], arg);
205 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) {
206 return simgrid::simix::unmarshal<double>(simcall->args[6]);
208 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) {
209 simgrid::simix::marshal<double>(simcall->args[6], arg);
211 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) {
212 return simgrid::simix::unmarshal<double>(simcall->args[7]);
214 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) {
215 simgrid::simix::marshal<double>(simcall->args[7], arg);
217 static inline smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
218 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
220 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_activity_t result){
221 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
224 static inline smx_activity_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
225 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
227 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
228 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
231 static inline smx_activity_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
232 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
234 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
235 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
237 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
238 return simgrid::simix::unmarshal<double>(simcall->args[1]);
240 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
241 simgrid::simix::marshal<double>(simcall->args[1], arg);
244 static inline smx_activity_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
245 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
247 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
248 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
250 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
251 return simgrid::simix::unmarshal<double>(simcall->args[1]);
253 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
254 simgrid::simix::marshal<double>(simcall->args[1], arg);
257 static inline smx_activity_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
258 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
260 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
261 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
263 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
264 return simgrid::simix::unmarshal<int>(simcall->result);
266 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
267 simgrid::simix::marshal<int>(simcall->result, result);
270 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
271 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
273 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg) {
274 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
276 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
277 return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
279 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
280 simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
282 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
283 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
285 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
286 simgrid::simix::marshal<void*>(simcall->args[2], arg);
289 static inline smx_actor_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
290 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
292 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_actor_t arg) {
293 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
295 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
296 return simgrid::simix::unmarshal<int>(simcall->args[1]);
298 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
299 simgrid::simix::marshal<int>(simcall->args[1], arg);
302 static inline smx_actor_t simcall_process_restart__get__process(smx_simcall_t simcall) {
303 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
305 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_actor_t arg) {
306 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
308 static inline smx_actor_t simcall_process_restart__get__result(smx_simcall_t simcall){
309 return simgrid::simix::unmarshal<smx_actor_t>(simcall->result);
311 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_actor_t result){
312 simgrid::simix::marshal<smx_actor_t>(simcall->result, result);
315 static inline const char* simcall_mbox_create__get__name(smx_simcall_t simcall) {
316 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
318 static inline void simcall_mbox_create__set__name(smx_simcall_t simcall, const char* arg) {
319 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
321 static inline smx_mailbox_t simcall_mbox_create__get__result(smx_simcall_t simcall){
322 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->result);
324 static inline void simcall_mbox_create__set__result(smx_simcall_t simcall, smx_mailbox_t result){
325 simgrid::simix::marshal<smx_mailbox_t>(simcall->result, result);
328 static inline smx_mailbox_t simcall_mbox_set_receiver__get__mbox(smx_simcall_t simcall) {
329 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
331 static inline void simcall_mbox_set_receiver__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
332 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
334 static inline smx_actor_t simcall_mbox_set_receiver__get__receiver(smx_simcall_t simcall) {
335 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[1]);
337 static inline void simcall_mbox_set_receiver__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
338 simgrid::simix::marshal<smx_actor_t>(simcall->args[1], arg);
341 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
342 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
344 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
345 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
347 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
348 return simgrid::simix::unmarshal<int>(simcall->args[1]);
350 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
351 simgrid::simix::marshal<int>(simcall->args[1], arg);
353 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
354 return simgrid::simix::unmarshal<int>(simcall->args[2]);
356 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
357 simgrid::simix::marshal<int>(simcall->args[2], arg);
359 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
360 return simgrid::simix::unmarshal<int>(simcall->args[3]);
362 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
363 simgrid::simix::marshal<int>(simcall->args[3], arg);
365 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
366 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
368 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
369 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
371 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
372 return simgrid::simix::unmarshal<void*>(simcall->args[5]);
374 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
375 simgrid::simix::marshal<void*>(simcall->args[5], arg);
377 static inline smx_activity_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
378 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
380 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_activity_t result){
381 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
384 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
385 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
387 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
388 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
390 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
391 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
393 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
394 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
396 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
397 return simgrid::simix::unmarshal<double>(simcall->args[2]);
399 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
400 simgrid::simix::marshal<double>(simcall->args[2], arg);
402 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
403 return simgrid::simix::unmarshal<double>(simcall->args[3]);
405 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
406 simgrid::simix::marshal<double>(simcall->args[3], arg);
408 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
409 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
411 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
412 simgrid::simix::marshal<void*>(simcall->args[4], arg);
414 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
415 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
417 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
418 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
420 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
421 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
423 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
424 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
426 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
427 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
429 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
430 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
432 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
433 return simgrid::simix::unmarshal<void*>(simcall->args[8]);
435 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
436 simgrid::simix::marshal<void*>(simcall->args[8], arg);
438 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
439 return simgrid::simix::unmarshal<double>(simcall->args[9]);
441 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
442 simgrid::simix::marshal<double>(simcall->args[9], arg);
445 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
446 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
448 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
449 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
451 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
452 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
454 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
455 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
457 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
458 return simgrid::simix::unmarshal<double>(simcall->args[2]);
460 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
461 simgrid::simix::marshal<double>(simcall->args[2], arg);
463 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
464 return simgrid::simix::unmarshal<double>(simcall->args[3]);
466 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
467 simgrid::simix::marshal<double>(simcall->args[3], arg);
469 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
470 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
472 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
473 simgrid::simix::marshal<void*>(simcall->args[4], arg);
475 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
476 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
478 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
479 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
481 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
482 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
484 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
485 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
487 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
488 return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
490 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
491 simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
493 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
494 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
496 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
497 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
499 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
500 return simgrid::simix::unmarshal<void*>(simcall->args[9]);
502 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
503 simgrid::simix::marshal<void*>(simcall->args[9], arg);
505 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
506 return simgrid::simix::unmarshal<int>(simcall->args[10]);
508 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
509 simgrid::simix::marshal<int>(simcall->args[10], arg);
511 static inline smx_activity_t simcall_comm_isend__get__result(smx_simcall_t simcall){
512 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
514 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_activity_t result){
515 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
518 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
519 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
521 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
522 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
524 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
525 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
527 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
528 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
530 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
531 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
533 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
534 simgrid::simix::marshal<void*>(simcall->args[2], arg);
536 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
537 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
539 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
540 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
542 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
543 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
545 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
546 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
548 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
549 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
551 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
552 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
554 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
555 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
557 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
558 simgrid::simix::marshal<void*>(simcall->args[6], arg);
560 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
561 return simgrid::simix::unmarshal<double>(simcall->args[7]);
563 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
564 simgrid::simix::marshal<double>(simcall->args[7], arg);
566 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
567 return simgrid::simix::unmarshal<double>(simcall->args[8]);
569 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
570 simgrid::simix::marshal<double>(simcall->args[8], arg);
573 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
574 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
576 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
577 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
579 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
580 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
582 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
583 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
585 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
586 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
588 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
589 simgrid::simix::marshal<void*>(simcall->args[2], arg);
591 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
592 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
594 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
595 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
597 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
598 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
600 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
601 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
603 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
604 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
606 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
607 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
609 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
610 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
612 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
613 simgrid::simix::marshal<void*>(simcall->args[6], arg);
615 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
616 return simgrid::simix::unmarshal<double>(simcall->args[7]);
618 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
619 simgrid::simix::marshal<double>(simcall->args[7], arg);
621 static inline smx_activity_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
622 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
624 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_activity_t result){
625 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
628 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
629 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
631 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
632 simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
634 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
635 return simgrid::simix::unmarshal<double>(simcall->args[1]);
637 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
638 simgrid::simix::marshal<double>(simcall->args[1], arg);
640 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
641 return simgrid::simix::unmarshal<int>(simcall->result);
643 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
644 simgrid::simix::marshal<int>(simcall->result, result);
647 static inline smx_activity_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
648 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
650 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
651 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
653 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
654 return simgrid::simix::unmarshal<double>(simcall->args[1]);
656 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
657 simgrid::simix::marshal<double>(simcall->args[1], arg);
660 static inline smx_activity_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
661 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
663 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
664 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
666 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
667 return simgrid::simix::unmarshal<int>(simcall->result);
669 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
670 simgrid::simix::marshal<int>(simcall->result, result);
673 static inline smx_activity_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
674 return simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]);
676 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_activity_t* arg) {
677 simgrid::simix::marshal<smx_activity_t*>(simcall->args[0], arg);
679 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
680 return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
682 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
683 simgrid::simix::marshal<size_t>(simcall->args[1], arg);
685 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
686 return simgrid::simix::unmarshal<int>(simcall->result);
688 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
689 simgrid::simix::marshal<int>(simcall->result, result);
692 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
693 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
695 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
696 simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
699 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
700 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
702 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
703 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
706 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
707 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
709 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
710 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
712 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
713 return simgrid::simix::unmarshal<int>(simcall->result);
715 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
716 simgrid::simix::marshal<int>(simcall->result, result);
719 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
720 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
722 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
723 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
726 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
727 return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
729 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
730 simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
733 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
734 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
736 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
737 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
740 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
741 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
743 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
744 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
746 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
747 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
749 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
750 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
753 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
754 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
756 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
757 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
759 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
760 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
762 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
763 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
765 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
766 return simgrid::simix::unmarshal<double>(simcall->args[2]);
768 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
769 simgrid::simix::marshal<double>(simcall->args[2], arg);
772 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
773 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
775 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
776 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
779 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
780 return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
782 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
783 simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
785 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
786 return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
788 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
789 simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
792 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
793 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
795 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
796 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
799 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
800 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
802 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
803 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
805 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
806 return simgrid::simix::unmarshal<int>(simcall->result);
808 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
809 simgrid::simix::marshal<int>(simcall->result, result);
812 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
813 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
815 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
816 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
819 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
820 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
822 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
823 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
825 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
826 return simgrid::simix::unmarshal<double>(simcall->args[1]);
828 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
829 simgrid::simix::marshal<double>(simcall->args[1], arg);
832 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
833 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
835 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
836 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
838 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
839 return simgrid::simix::unmarshal<int>(simcall->result);
841 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
842 simgrid::simix::marshal<int>(simcall->result, result);
845 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
846 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
848 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, smx_file_t arg) {
849 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
851 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall) {
852 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
854 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg) {
855 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
857 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall) {
858 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
860 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg) {
861 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
863 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
864 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
866 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
867 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
870 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
871 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
873 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
874 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
876 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
877 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
879 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
880 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
882 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
883 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
885 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
886 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
888 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
889 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
891 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
892 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
895 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
896 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
898 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
899 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
901 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
902 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
904 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
905 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
907 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
908 return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
910 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
911 simgrid::simix::marshal<smx_file_t>(simcall->result, result);
914 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
915 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
917 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
918 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
920 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
921 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
923 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
924 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
926 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
927 return simgrid::simix::unmarshal<int>(simcall->result);
929 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
930 simgrid::simix::marshal<int>(simcall->result, result);
933 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
934 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
936 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
937 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
939 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
940 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
942 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
943 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
945 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
946 return simgrid::simix::unmarshal<int>(simcall->result);
948 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
949 simgrid::simix::marshal<int>(simcall->result, result);
952 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
953 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
955 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
956 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
958 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
959 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
961 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
962 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
965 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
966 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
968 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
969 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
971 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
972 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
974 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
975 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
978 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
979 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
981 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
982 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
984 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
985 return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
987 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
988 simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
990 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
991 return simgrid::simix::unmarshal<int>(simcall->args[2]);
993 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
994 simgrid::simix::marshal<int>(simcall->args[2], arg);
996 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
997 return simgrid::simix::unmarshal<int>(simcall->result);
999 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
1000 simgrid::simix::marshal<int>(simcall->result, result);
1003 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
1004 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1006 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1007 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1009 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
1010 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
1012 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
1013 simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
1016 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
1017 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
1019 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
1020 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
1022 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
1023 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1025 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
1026 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1028 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
1029 return simgrid::simix::unmarshal<int>(simcall->result);
1031 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
1032 simgrid::simix::marshal<int>(simcall->result, result);
1035 static inline smx_storage_t simcall_storage_get_free_size__get__storage(smx_simcall_t simcall) {
1036 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1038 static inline void simcall_storage_get_free_size__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1039 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1041 static inline sg_size_t simcall_storage_get_free_size__get__result(smx_simcall_t simcall){
1042 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1044 static inline void simcall_storage_get_free_size__set__result(smx_simcall_t simcall, sg_size_t result){
1045 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1048 static inline smx_storage_t simcall_storage_get_used_size__get__name(smx_simcall_t simcall) {
1049 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1051 static inline void simcall_storage_get_used_size__set__name(smx_simcall_t simcall, smx_storage_t arg) {
1052 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1054 static inline sg_size_t simcall_storage_get_used_size__get__result(smx_simcall_t simcall){
1055 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1057 static inline void simcall_storage_get_used_size__set__result(smx_simcall_t simcall, sg_size_t result){
1058 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1061 static inline smx_storage_t simcall_storage_get_properties__get__storage(smx_simcall_t simcall) {
1062 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1064 static inline void simcall_storage_get_properties__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1065 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1067 static inline xbt_dict_t simcall_storage_get_properties__get__result(smx_simcall_t simcall){
1068 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1070 static inline void simcall_storage_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1071 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1074 static inline smx_storage_t simcall_storage_get_content__get__storage(smx_simcall_t simcall) {
1075 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1077 static inline void simcall_storage_get_content__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1078 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1080 static inline xbt_dict_t simcall_storage_get_content__get__result(smx_simcall_t simcall){
1081 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1083 static inline void simcall_storage_get_content__set__result(smx_simcall_t simcall, xbt_dict_t result){
1084 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1087 static inline const char* simcall_asr_get_properties__get__name(smx_simcall_t simcall) {
1088 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
1090 static inline void simcall_asr_get_properties__set__name(smx_simcall_t simcall, const char* arg) {
1091 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
1093 static inline xbt_dict_t simcall_asr_get_properties__get__result(smx_simcall_t simcall){
1094 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1096 static inline void simcall_asr_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1097 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1100 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
1101 return simgrid::simix::unmarshal<int>(simcall->args[0]);
1103 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
1104 simgrid::simix::marshal<int>(simcall->args[0], arg);
1106 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
1107 return simgrid::simix::unmarshal<int>(simcall->args[1]);
1109 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
1110 simgrid::simix::marshal<int>(simcall->args[1], arg);
1112 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
1113 return simgrid::simix::unmarshal<int>(simcall->result);
1115 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1116 simgrid::simix::marshal<int>(simcall->result, result);
1119 static inline smx_activity_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1120 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
1122 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_activity_t arg) {
1123 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
1125 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1126 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1128 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1129 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1132 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1133 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1135 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1136 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1139 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1140 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1142 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1143 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1146 /* The prototype of all simcall handlers, automatically generated for you */
1148 XBT_PRIVATE void simcall_HANDLER_vm_suspend(smx_simcall_t simcall, sg_host_t ind_vm);
1149 XBT_PRIVATE void simcall_HANDLER_vm_shutdown(smx_simcall_t simcall, sg_host_t ind_vm);
1150 XBT_PRIVATE void simcall_HANDLER_vm_save(smx_simcall_t simcall, sg_host_t ind_vm);
1151 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process);
1152 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1153 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1154 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_actor_t process, sg_host_t dest);
1155 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1156 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1157 XBT_PRIVATE smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound);
1158 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t execution);
1159 XBT_PRIVATE smx_actor_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_actor_t process);
1160 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);
1161 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);
1162 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);
1163 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);
1164 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);
1165 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1166 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t comm, double timeout);
1167 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_activity_t comm);
1168 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_activity_t* comms, size_t count);
1169 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1170 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1171 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1172 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1173 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1174 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1175 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1176 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1177 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1178 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1179 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1180 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1181 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1182 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1183 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1184 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1185 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1186 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1187 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1188 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1189 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_free_size(smx_simcall_t simcall, smx_storage_t storage);
1190 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_used_size(smx_simcall_t simcall, smx_storage_t name);
1191 XBT_PRIVATE xbt_dict_t simcall_HANDLER_asr_get_properties(smx_simcall_t simcall, const char* name);
1192 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);