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 smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall) {
18 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
20 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_actor_t arg) {
21 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
24 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall) {
25 return simgrid::simix::unmarshal<int>(simcall->args[0]);
27 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg) {
28 simgrid::simix::marshal<int>(simcall->args[0], arg);
31 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall) {
32 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
34 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg) {
35 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
38 static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall) {
39 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
41 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_actor_t arg) {
42 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
45 static inline smx_actor_t simcall_process_resume__get__process(smx_simcall_t simcall) {
46 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
48 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_actor_t arg) {
49 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
52 static inline smx_actor_t simcall_process_set_host__get__process(smx_simcall_t simcall) {
53 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
55 static inline void simcall_process_set_host__set__process(smx_simcall_t simcall, smx_actor_t arg) {
56 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
58 static inline sg_host_t simcall_process_set_host__get__dest(smx_simcall_t simcall) {
59 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
61 static inline void simcall_process_set_host__set__dest(smx_simcall_t simcall, sg_host_t arg) {
62 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
65 static inline smx_actor_t simcall_process_is_suspended__get__process(smx_simcall_t simcall) {
66 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
68 static inline void simcall_process_is_suspended__set__process(smx_simcall_t simcall, smx_actor_t arg) {
69 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
71 static inline int simcall_process_is_suspended__get__result(smx_simcall_t simcall){
72 return simgrid::simix::unmarshal<int>(simcall->result);
74 static inline void simcall_process_is_suspended__set__result(smx_simcall_t simcall, int result){
75 simgrid::simix::marshal<int>(simcall->result, result);
78 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall) {
79 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
81 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg) {
82 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
84 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall) {
85 return simgrid::simix::unmarshal<double>(simcall->args[1]);
87 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg) {
88 simgrid::simix::marshal<double>(simcall->args[1], arg);
90 static inline int simcall_process_join__get__result(smx_simcall_t simcall){
91 return simgrid::simix::unmarshal<int>(simcall->result);
93 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
94 simgrid::simix::marshal<int>(simcall->result, result);
97 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall) {
98 return simgrid::simix::unmarshal<double>(simcall->args[0]);
100 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg) {
101 simgrid::simix::marshal<double>(simcall->args[0], arg);
103 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall){
104 return simgrid::simix::unmarshal<int>(simcall->result);
106 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
107 simgrid::simix::marshal<int>(simcall->result, result);
110 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall) {
111 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
113 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg) {
114 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
116 static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall) {
117 return simgrid::simix::unmarshal<double>(simcall->args[1]);
119 static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg) {
120 simgrid::simix::marshal<double>(simcall->args[1], arg);
122 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall) {
123 return simgrid::simix::unmarshal<double>(simcall->args[2]);
125 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg) {
126 simgrid::simix::marshal<double>(simcall->args[2], arg);
128 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall) {
129 return simgrid::simix::unmarshal<double>(simcall->args[3]);
131 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg) {
132 simgrid::simix::marshal<double>(simcall->args[3], arg);
134 static inline smx_activity_t simcall_execution_start__get__result(smx_simcall_t simcall){
135 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
137 static inline void simcall_execution_start__set__result(smx_simcall_t simcall, smx_activity_t result){
138 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
141 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) {
142 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
144 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) {
145 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
147 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) {
148 return simgrid::simix::unmarshal<int>(simcall->args[1]);
150 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) {
151 simgrid::simix::marshal<int>(simcall->args[1], arg);
153 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) {
154 return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
156 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) {
157 simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
159 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) {
160 return simgrid::simix::unmarshal<double*>(simcall->args[3]);
162 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) {
163 simgrid::simix::marshal<double*>(simcall->args[3], arg);
165 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) {
166 return simgrid::simix::unmarshal<double*>(simcall->args[4]);
168 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) {
169 simgrid::simix::marshal<double*>(simcall->args[4], arg);
171 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall) {
172 return simgrid::simix::unmarshal<double>(simcall->args[5]);
174 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg) {
175 simgrid::simix::marshal<double>(simcall->args[5], arg);
177 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) {
178 return simgrid::simix::unmarshal<double>(simcall->args[6]);
180 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) {
181 simgrid::simix::marshal<double>(simcall->args[6], arg);
183 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) {
184 return simgrid::simix::unmarshal<double>(simcall->args[7]);
186 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) {
187 simgrid::simix::marshal<double>(simcall->args[7], arg);
189 static inline smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
190 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
192 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_activity_t result){
193 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
196 static inline smx_activity_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
197 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
199 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
200 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
203 static inline smx_activity_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
204 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
206 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
207 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
209 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
210 return simgrid::simix::unmarshal<double>(simcall->args[1]);
212 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
213 simgrid::simix::marshal<double>(simcall->args[1], arg);
216 static inline smx_activity_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
217 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
219 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
220 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
222 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
223 return simgrid::simix::unmarshal<double>(simcall->args[1]);
225 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
226 simgrid::simix::marshal<double>(simcall->args[1], arg);
229 static inline smx_activity_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
230 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
232 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
233 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
235 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
236 return simgrid::simix::unmarshal<int>(simcall->result);
238 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
239 simgrid::simix::marshal<int>(simcall->result, result);
242 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
243 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
245 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg) {
246 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
248 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
249 return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
251 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
252 simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
254 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
255 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
257 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
258 simgrid::simix::marshal<void*>(simcall->args[2], arg);
261 static inline smx_actor_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
262 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
264 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_actor_t arg) {
265 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
267 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
268 return simgrid::simix::unmarshal<int>(simcall->args[1]);
270 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
271 simgrid::simix::marshal<int>(simcall->args[1], arg);
274 static inline smx_actor_t simcall_process_restart__get__process(smx_simcall_t simcall) {
275 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
277 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_actor_t arg) {
278 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
280 static inline smx_actor_t simcall_process_restart__get__result(smx_simcall_t simcall){
281 return simgrid::simix::unmarshal<smx_actor_t>(simcall->result);
283 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_actor_t result){
284 simgrid::simix::marshal<smx_actor_t>(simcall->result, result);
287 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
288 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
290 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
291 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
293 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
294 return simgrid::simix::unmarshal<int>(simcall->args[1]);
296 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
297 simgrid::simix::marshal<int>(simcall->args[1], arg);
299 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
300 return simgrid::simix::unmarshal<int>(simcall->args[2]);
302 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
303 simgrid::simix::marshal<int>(simcall->args[2], arg);
305 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
306 return simgrid::simix::unmarshal<int>(simcall->args[3]);
308 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
309 simgrid::simix::marshal<int>(simcall->args[3], arg);
311 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
312 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
314 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
315 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
317 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
318 return simgrid::simix::unmarshal<void*>(simcall->args[5]);
320 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
321 simgrid::simix::marshal<void*>(simcall->args[5], arg);
323 static inline smx_activity_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
324 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
326 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_activity_t result){
327 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
330 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
331 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
333 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
334 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
336 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
337 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
339 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
340 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
342 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
343 return simgrid::simix::unmarshal<double>(simcall->args[2]);
345 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
346 simgrid::simix::marshal<double>(simcall->args[2], arg);
348 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
349 return simgrid::simix::unmarshal<double>(simcall->args[3]);
351 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
352 simgrid::simix::marshal<double>(simcall->args[3], arg);
354 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
355 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
357 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
358 simgrid::simix::marshal<void*>(simcall->args[4], arg);
360 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
361 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
363 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
364 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
366 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
367 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
369 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
370 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
372 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
373 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
375 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
376 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
378 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
379 return simgrid::simix::unmarshal<void*>(simcall->args[8]);
381 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
382 simgrid::simix::marshal<void*>(simcall->args[8], arg);
384 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
385 return simgrid::simix::unmarshal<double>(simcall->args[9]);
387 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
388 simgrid::simix::marshal<double>(simcall->args[9], arg);
391 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
392 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
394 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
395 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
397 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
398 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
400 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
401 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
403 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
404 return simgrid::simix::unmarshal<double>(simcall->args[2]);
406 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
407 simgrid::simix::marshal<double>(simcall->args[2], arg);
409 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
410 return simgrid::simix::unmarshal<double>(simcall->args[3]);
412 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
413 simgrid::simix::marshal<double>(simcall->args[3], arg);
415 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
416 return simgrid::simix::unmarshal<void*>(simcall->args[4]);
418 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
419 simgrid::simix::marshal<void*>(simcall->args[4], arg);
421 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
422 return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
424 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
425 simgrid::simix::marshal<size_t>(simcall->args[5], arg);
427 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
428 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
430 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
431 simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
433 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
434 return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
436 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
437 simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
439 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
440 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
442 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
443 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
445 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
446 return simgrid::simix::unmarshal<void*>(simcall->args[9]);
448 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
449 simgrid::simix::marshal<void*>(simcall->args[9], arg);
451 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
452 return simgrid::simix::unmarshal<int>(simcall->args[10]);
454 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
455 simgrid::simix::marshal<int>(simcall->args[10], arg);
457 static inline smx_activity_t simcall_comm_isend__get__result(smx_simcall_t simcall){
458 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
460 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_activity_t result){
461 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
464 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
465 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
467 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
468 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
470 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
471 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
473 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
474 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
476 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
477 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
479 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
480 simgrid::simix::marshal<void*>(simcall->args[2], arg);
482 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
483 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
485 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
486 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
488 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
489 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
491 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
492 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
494 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
495 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
497 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
498 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
500 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
501 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
503 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
504 simgrid::simix::marshal<void*>(simcall->args[6], arg);
506 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
507 return simgrid::simix::unmarshal<double>(simcall->args[7]);
509 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
510 simgrid::simix::marshal<double>(simcall->args[7], arg);
512 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
513 return simgrid::simix::unmarshal<double>(simcall->args[8]);
515 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
516 simgrid::simix::marshal<double>(simcall->args[8], arg);
519 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
520 return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
522 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
523 simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
525 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
526 return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
528 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
529 simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
531 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
532 return simgrid::simix::unmarshal<void*>(simcall->args[2]);
534 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
535 simgrid::simix::marshal<void*>(simcall->args[2], arg);
537 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
538 return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
540 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
541 simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
543 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
544 return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
546 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
547 simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
549 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
550 return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
552 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
553 simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
555 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
556 return simgrid::simix::unmarshal<void*>(simcall->args[6]);
558 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
559 simgrid::simix::marshal<void*>(simcall->args[6], arg);
561 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
562 return simgrid::simix::unmarshal<double>(simcall->args[7]);
564 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
565 simgrid::simix::marshal<double>(simcall->args[7], arg);
567 static inline smx_activity_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
568 return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
570 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_activity_t result){
571 simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
574 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
575 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
577 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
578 simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
580 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
581 return simgrid::simix::unmarshal<double>(simcall->args[1]);
583 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
584 simgrid::simix::marshal<double>(simcall->args[1], arg);
586 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
587 return simgrid::simix::unmarshal<int>(simcall->result);
589 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
590 simgrid::simix::marshal<int>(simcall->result, result);
593 static inline smx_activity_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
594 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
596 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
597 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
599 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
600 return simgrid::simix::unmarshal<double>(simcall->args[1]);
602 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
603 simgrid::simix::marshal<double>(simcall->args[1], arg);
606 static inline smx_activity_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
607 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
609 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
610 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
612 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
613 return simgrid::simix::unmarshal<int>(simcall->result);
615 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
616 simgrid::simix::marshal<int>(simcall->result, result);
619 static inline smx_activity_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
620 return simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]);
622 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_activity_t* arg) {
623 simgrid::simix::marshal<smx_activity_t*>(simcall->args[0], arg);
625 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
626 return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
628 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
629 simgrid::simix::marshal<size_t>(simcall->args[1], arg);
631 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
632 return simgrid::simix::unmarshal<int>(simcall->result);
634 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
635 simgrid::simix::marshal<int>(simcall->result, result);
638 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
639 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
641 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
642 simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
645 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
646 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
648 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
649 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
652 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
653 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
655 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
656 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
658 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
659 return simgrid::simix::unmarshal<int>(simcall->result);
661 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
662 simgrid::simix::marshal<int>(simcall->result, result);
665 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
666 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
668 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
669 simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
672 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
673 return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
675 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
676 simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
679 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
680 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
682 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
683 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
686 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
687 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
689 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
690 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
692 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
693 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
695 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
696 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
699 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
700 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
702 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
703 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
705 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
706 return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
708 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
709 simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
711 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
712 return simgrid::simix::unmarshal<double>(simcall->args[2]);
714 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
715 simgrid::simix::marshal<double>(simcall->args[2], arg);
718 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
719 return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
721 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
722 simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
725 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
726 return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
728 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
729 simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
731 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
732 return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
734 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
735 simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
738 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
739 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
741 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
742 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
745 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
746 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
748 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
749 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
751 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
752 return simgrid::simix::unmarshal<int>(simcall->result);
754 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
755 simgrid::simix::marshal<int>(simcall->result, result);
758 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
759 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
761 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
762 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
765 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
766 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
768 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
769 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
771 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
772 return simgrid::simix::unmarshal<double>(simcall->args[1]);
774 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
775 simgrid::simix::marshal<double>(simcall->args[1], arg);
778 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
779 return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
781 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
782 simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
784 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
785 return simgrid::simix::unmarshal<int>(simcall->result);
787 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
788 simgrid::simix::marshal<int>(simcall->result, result);
791 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
792 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
794 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, smx_file_t arg) {
795 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
797 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall) {
798 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
800 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg) {
801 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
803 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall) {
804 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
806 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg) {
807 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
809 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
810 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
812 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
813 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
816 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
817 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
819 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
820 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
822 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
823 return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
825 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
826 simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
828 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
829 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
831 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
832 simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
834 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
835 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
837 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
838 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
841 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
842 return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
844 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
845 simgrid::simix::marshal<const char*>(simcall->args[0], arg);
847 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
848 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
850 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
851 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
853 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
854 return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
856 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
857 simgrid::simix::marshal<smx_file_t>(simcall->result, result);
860 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
861 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
863 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
864 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
866 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
867 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
869 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
870 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
872 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
873 return simgrid::simix::unmarshal<int>(simcall->result);
875 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
876 simgrid::simix::marshal<int>(simcall->result, result);
879 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
880 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
882 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
883 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
885 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
886 return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
888 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
889 simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
891 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
892 return simgrid::simix::unmarshal<int>(simcall->result);
894 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
895 simgrid::simix::marshal<int>(simcall->result, result);
898 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
899 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
901 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
902 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
904 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
905 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
907 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
908 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
911 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
912 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
914 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
915 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
917 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
918 return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
920 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
921 simgrid::simix::marshal<sg_size_t>(simcall->result, result);
924 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
925 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
927 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
928 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
930 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
931 return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
933 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
934 simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
936 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
937 return simgrid::simix::unmarshal<int>(simcall->args[2]);
939 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
940 simgrid::simix::marshal<int>(simcall->args[2], arg);
942 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
943 return simgrid::simix::unmarshal<int>(simcall->result);
945 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
946 simgrid::simix::marshal<int>(simcall->result, result);
949 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
950 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
952 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
953 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
955 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
956 return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
958 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
959 simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
962 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
963 return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
965 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
966 simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
968 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
969 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
971 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
972 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
974 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
975 return simgrid::simix::unmarshal<int>(simcall->result);
977 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
978 simgrid::simix::marshal<int>(simcall->result, result);
981 static inline smx_storage_t simcall_storage_get_properties__get__storage(smx_simcall_t simcall) {
982 return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
984 static inline void simcall_storage_get_properties__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
985 simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
987 static inline xbt_dict_t simcall_storage_get_properties__get__result(smx_simcall_t simcall){
988 return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
990 static inline void simcall_storage_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
991 simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
994 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
995 return simgrid::simix::unmarshal<int>(simcall->args[0]);
997 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
998 simgrid::simix::marshal<int>(simcall->args[0], arg);
1000 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
1001 return simgrid::simix::unmarshal<int>(simcall->args[1]);
1003 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
1004 simgrid::simix::marshal<int>(simcall->args[1], arg);
1006 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
1007 return simgrid::simix::unmarshal<int>(simcall->result);
1009 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1010 simgrid::simix::marshal<int>(simcall->result, result);
1013 static inline smx_activity_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1014 return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
1016 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_activity_t arg) {
1017 simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
1019 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1020 return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1022 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1023 simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1026 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1027 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1029 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1030 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1033 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1034 return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1036 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1037 simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1040 /* The prototype of all simcall handlers, automatically generated for you */
1042 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process);
1043 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1044 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1045 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_actor_t process, sg_host_t dest);
1046 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1047 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1048 XBT_PRIVATE smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound);
1049 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t execution);
1050 XBT_PRIVATE smx_actor_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_actor_t process);
1051 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);
1052 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);
1053 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);
1054 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);
1055 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);
1056 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1057 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t comm, double timeout);
1058 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_activity_t comm);
1059 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_activity_t* comms, size_t count);
1060 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1061 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1062 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1063 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1064 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1065 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1066 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1067 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1068 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1069 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1070 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1071 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1072 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1073 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1074 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1075 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1076 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1077 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1078 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1079 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1080 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);