Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Modernize simcall sem_acquire_timeout.
[simgrid.git] / src / simix / popping_accessors.hpp
1 /**********************************************************************/
2 /* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
3 /*                                                                    */
4 /*                    DO NOT EVER CHANGE THIS FILE                    */
5 /*                                                                    */
6 /* change simcalls specification in src/simix/simcalls.in             */
7 /* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved.    */
8 /**********************************************************************/
9
10 /*
11  * Note that the name comes from http://en.wikipedia.org/wiki/Popping
12  * Indeed, the control flow is doing a strange dance in there.
13  *
14  * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
15  */
16
17 #include "src/simix/popping_private.hpp"
18 static inline simgrid::kernel::activity::ExecImpl** simcall_execution_waitany_for__get__execs(smx_simcall_t simcall)
19 {
20   return simgrid::simix::unmarshal<simgrid::kernel::activity::ExecImpl**>(simcall->args_[0]);
21 }
22 static inline simgrid::kernel::activity::ExecImpl** simcall_execution_waitany_for__getraw__execs(smx_simcall_t simcall)
23 {
24   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ExecImpl**>(simcall->args_[0]);
25 }
26 static inline void simcall_execution_waitany_for__set__execs(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl** arg)
27 {
28   simgrid::simix::marshal<simgrid::kernel::activity::ExecImpl**>(simcall->args_[0], arg);
29 }
30 static inline size_t simcall_execution_waitany_for__get__count(smx_simcall_t simcall)
31 {
32   return simgrid::simix::unmarshal<size_t>(simcall->args_[1]);
33 }
34 static inline size_t simcall_execution_waitany_for__getraw__count(smx_simcall_t simcall)
35 {
36   return simgrid::simix::unmarshal_raw<size_t>(simcall->args_[1]);
37 }
38 static inline void simcall_execution_waitany_for__set__count(smx_simcall_t simcall, size_t arg)
39 {
40   simgrid::simix::marshal<size_t>(simcall->args_[1], arg);
41 }
42 static inline double simcall_execution_waitany_for__get__timeout(smx_simcall_t simcall)
43 {
44   return simgrid::simix::unmarshal<double>(simcall->args_[2]);
45 }
46 static inline double simcall_execution_waitany_for__getraw__timeout(smx_simcall_t simcall)
47 {
48   return simgrid::simix::unmarshal_raw<double>(simcall->args_[2]);
49 }
50 static inline void simcall_execution_waitany_for__set__timeout(smx_simcall_t simcall, double arg)
51 {
52   simgrid::simix::marshal<double>(simcall->args_[2], arg);
53 }
54 static inline int simcall_execution_waitany_for__get__result(smx_simcall_t simcall)
55 {
56   return simgrid::simix::unmarshal<int>(simcall->result_);
57 }
58 static inline int simcall_execution_waitany_for__getraw__result(smx_simcall_t simcall)
59 {
60   return simgrid::simix::unmarshal_raw<int>(simcall->result_);
61 }
62 static inline void simcall_execution_waitany_for__set__result(smx_simcall_t simcall, int result)
63 {
64   simgrid::simix::marshal<int>(simcall->result_, result);
65 }
66
67 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall)
68 {
69   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args_[0]);
70 }
71 static inline smx_actor_t simcall_comm_recv__getraw__receiver(smx_simcall_t simcall)
72 {
73   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args_[0]);
74 }
75 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg)
76 {
77   simgrid::simix::marshal<smx_actor_t>(simcall->args_[0], arg);
78 }
79 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall)
80 {
81   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args_[1]);
82 }
83 static inline smx_mailbox_t simcall_comm_recv__getraw__mbox(smx_simcall_t simcall)
84 {
85   return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args_[1]);
86 }
87 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
88 {
89   simgrid::simix::marshal<smx_mailbox_t>(simcall->args_[1], arg);
90 }
91 static inline unsigned char* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall)
92 {
93   return simgrid::simix::unmarshal<unsigned char*>(simcall->args_[2]);
94 }
95 static inline unsigned char* simcall_comm_recv__getraw__dst_buff(smx_simcall_t simcall)
96 {
97   return simgrid::simix::unmarshal_raw<unsigned char*>(simcall->args_[2]);
98 }
99 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, unsigned char* arg)
100 {
101   simgrid::simix::marshal<unsigned char*>(simcall->args_[2], arg);
102 }
103 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall)
104 {
105   return simgrid::simix::unmarshal<size_t*>(simcall->args_[3]);
106 }
107 static inline size_t* simcall_comm_recv__getraw__dst_buff_size(smx_simcall_t simcall)
108 {
109   return simgrid::simix::unmarshal_raw<size_t*>(simcall->args_[3]);
110 }
111 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg)
112 {
113   simgrid::simix::marshal<size_t*>(simcall->args_[3], arg);
114 }
115 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall)
116 {
117   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args_[4]);
118 }
119 static inline simix_match_func_t simcall_comm_recv__getraw__match_fun(smx_simcall_t simcall)
120 {
121   return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args_[4]);
122 }
123 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
124 {
125   simgrid::simix::marshal<simix_match_func_t>(simcall->args_[4], arg);
126 }
127 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall)
128 {
129   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args_[5]);
130 }
131 static inline simix_copy_data_func_t simcall_comm_recv__getraw__copy_data_fun(smx_simcall_t simcall)
132 {
133   return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args_[5]);
134 }
135 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
136 {
137   simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args_[5], arg);
138 }
139 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall)
140 {
141   return simgrid::simix::unmarshal<void*>(simcall->args_[6]);
142 }
143 static inline void* simcall_comm_recv__getraw__data(smx_simcall_t simcall)
144 {
145   return simgrid::simix::unmarshal_raw<void*>(simcall->args_[6]);
146 }
147 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg)
148 {
149   simgrid::simix::marshal<void*>(simcall->args_[6], arg);
150 }
151 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall)
152 {
153   return simgrid::simix::unmarshal<double>(simcall->args_[7]);
154 }
155 static inline double simcall_comm_recv__getraw__timeout(smx_simcall_t simcall)
156 {
157   return simgrid::simix::unmarshal_raw<double>(simcall->args_[7]);
158 }
159 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg)
160 {
161   simgrid::simix::marshal<double>(simcall->args_[7], arg);
162 }
163 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall)
164 {
165   return simgrid::simix::unmarshal<double>(simcall->args_[8]);
166 }
167 static inline double simcall_comm_recv__getraw__rate(smx_simcall_t simcall)
168 {
169   return simgrid::simix::unmarshal_raw<double>(simcall->args_[8]);
170 }
171 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg)
172 {
173   simgrid::simix::marshal<double>(simcall->args_[8], arg);
174 }
175
176 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall)
177 {
178   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args_[0]);
179 }
180 static inline smx_actor_t simcall_comm_irecv__getraw__receiver(smx_simcall_t simcall)
181 {
182   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args_[0]);
183 }
184 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg)
185 {
186   simgrid::simix::marshal<smx_actor_t>(simcall->args_[0], arg);
187 }
188 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall)
189 {
190   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args_[1]);
191 }
192 static inline smx_mailbox_t simcall_comm_irecv__getraw__mbox(smx_simcall_t simcall)
193 {
194   return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args_[1]);
195 }
196 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
197 {
198   simgrid::simix::marshal<smx_mailbox_t>(simcall->args_[1], arg);
199 }
200 static inline unsigned char* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall)
201 {
202   return simgrid::simix::unmarshal<unsigned char*>(simcall->args_[2]);
203 }
204 static inline unsigned char* simcall_comm_irecv__getraw__dst_buff(smx_simcall_t simcall)
205 {
206   return simgrid::simix::unmarshal_raw<unsigned char*>(simcall->args_[2]);
207 }
208 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, unsigned char* arg)
209 {
210   simgrid::simix::marshal<unsigned char*>(simcall->args_[2], arg);
211 }
212 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall)
213 {
214   return simgrid::simix::unmarshal<size_t*>(simcall->args_[3]);
215 }
216 static inline size_t* simcall_comm_irecv__getraw__dst_buff_size(smx_simcall_t simcall)
217 {
218   return simgrid::simix::unmarshal_raw<size_t*>(simcall->args_[3]);
219 }
220 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg)
221 {
222   simgrid::simix::marshal<size_t*>(simcall->args_[3], arg);
223 }
224 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall)
225 {
226   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args_[4]);
227 }
228 static inline simix_match_func_t simcall_comm_irecv__getraw__match_fun(smx_simcall_t simcall)
229 {
230   return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args_[4]);
231 }
232 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
233 {
234   simgrid::simix::marshal<simix_match_func_t>(simcall->args_[4], arg);
235 }
236 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall)
237 {
238   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args_[5]);
239 }
240 static inline simix_copy_data_func_t simcall_comm_irecv__getraw__copy_data_fun(smx_simcall_t simcall)
241 {
242   return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args_[5]);
243 }
244 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
245 {
246   simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args_[5], arg);
247 }
248 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall)
249 {
250   return simgrid::simix::unmarshal<void*>(simcall->args_[6]);
251 }
252 static inline void* simcall_comm_irecv__getraw__data(smx_simcall_t simcall)
253 {
254   return simgrid::simix::unmarshal_raw<void*>(simcall->args_[6]);
255 }
256 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg)
257 {
258   simgrid::simix::marshal<void*>(simcall->args_[6], arg);
259 }
260 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall)
261 {
262   return simgrid::simix::unmarshal<double>(simcall->args_[7]);
263 }
264 static inline double simcall_comm_irecv__getraw__rate(smx_simcall_t simcall)
265 {
266   return simgrid::simix::unmarshal_raw<double>(simcall->args_[7]);
267 }
268 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg)
269 {
270   simgrid::simix::marshal<double>(simcall->args_[7], arg);
271 }
272 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> simcall_comm_irecv__get__result(smx_simcall_t simcall)
273 {
274   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result_);
275 }
276 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_irecv__getraw__result(smx_simcall_t simcall)
277 {
278   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->result_);
279 }
280 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> result)
281 {
282   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result_, result);
283 }
284
285 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall)
286 {
287   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args_[0]);
288 }
289 static inline smx_actor_t simcall_comm_send__getraw__sender(smx_simcall_t simcall)
290 {
291   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args_[0]);
292 }
293 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg)
294 {
295   simgrid::simix::marshal<smx_actor_t>(simcall->args_[0], arg);
296 }
297 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall)
298 {
299   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args_[1]);
300 }
301 static inline smx_mailbox_t simcall_comm_send__getraw__mbox(smx_simcall_t simcall)
302 {
303   return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args_[1]);
304 }
305 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
306 {
307   simgrid::simix::marshal<smx_mailbox_t>(simcall->args_[1], arg);
308 }
309 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall)
310 {
311   return simgrid::simix::unmarshal<double>(simcall->args_[2]);
312 }
313 static inline double simcall_comm_send__getraw__task_size(smx_simcall_t simcall)
314 {
315   return simgrid::simix::unmarshal_raw<double>(simcall->args_[2]);
316 }
317 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg)
318 {
319   simgrid::simix::marshal<double>(simcall->args_[2], arg);
320 }
321 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall)
322 {
323   return simgrid::simix::unmarshal<double>(simcall->args_[3]);
324 }
325 static inline double simcall_comm_send__getraw__rate(smx_simcall_t simcall)
326 {
327   return simgrid::simix::unmarshal_raw<double>(simcall->args_[3]);
328 }
329 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg)
330 {
331   simgrid::simix::marshal<double>(simcall->args_[3], arg);
332 }
333 static inline unsigned char* simcall_comm_send__get__src_buff(smx_simcall_t simcall)
334 {
335   return simgrid::simix::unmarshal<unsigned char*>(simcall->args_[4]);
336 }
337 static inline unsigned char* simcall_comm_send__getraw__src_buff(smx_simcall_t simcall)
338 {
339   return simgrid::simix::unmarshal_raw<unsigned char*>(simcall->args_[4]);
340 }
341 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, unsigned char* arg)
342 {
343   simgrid::simix::marshal<unsigned char*>(simcall->args_[4], arg);
344 }
345 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall)
346 {
347   return simgrid::simix::unmarshal<size_t>(simcall->args_[5]);
348 }
349 static inline size_t simcall_comm_send__getraw__src_buff_size(smx_simcall_t simcall)
350 {
351   return simgrid::simix::unmarshal_raw<size_t>(simcall->args_[5]);
352 }
353 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg)
354 {
355   simgrid::simix::marshal<size_t>(simcall->args_[5], arg);
356 }
357 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall)
358 {
359   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args_[6]);
360 }
361 static inline simix_match_func_t simcall_comm_send__getraw__match_fun(smx_simcall_t simcall)
362 {
363   return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args_[6]);
364 }
365 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
366 {
367   simgrid::simix::marshal<simix_match_func_t>(simcall->args_[6], arg);
368 }
369 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall)
370 {
371   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args_[7]);
372 }
373 static inline simix_copy_data_func_t simcall_comm_send__getraw__copy_data_fun(smx_simcall_t simcall)
374 {
375   return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args_[7]);
376 }
377 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
378 {
379   simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args_[7], arg);
380 }
381 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall)
382 {
383   return simgrid::simix::unmarshal<void*>(simcall->args_[8]);
384 }
385 static inline void* simcall_comm_send__getraw__data(smx_simcall_t simcall)
386 {
387   return simgrid::simix::unmarshal_raw<void*>(simcall->args_[8]);
388 }
389 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg)
390 {
391   simgrid::simix::marshal<void*>(simcall->args_[8], arg);
392 }
393 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall)
394 {
395   return simgrid::simix::unmarshal<double>(simcall->args_[9]);
396 }
397 static inline double simcall_comm_send__getraw__timeout(smx_simcall_t simcall)
398 {
399   return simgrid::simix::unmarshal_raw<double>(simcall->args_[9]);
400 }
401 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg)
402 {
403   simgrid::simix::marshal<double>(simcall->args_[9], arg);
404 }
405
406 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall)
407 {
408   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args_[0]);
409 }
410 static inline smx_actor_t simcall_comm_isend__getraw__sender(smx_simcall_t simcall)
411 {
412   return simgrid::simix::unmarshal_raw<smx_actor_t>(simcall->args_[0]);
413 }
414 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg)
415 {
416   simgrid::simix::marshal<smx_actor_t>(simcall->args_[0], arg);
417 }
418 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall)
419 {
420   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args_[1]);
421 }
422 static inline smx_mailbox_t simcall_comm_isend__getraw__mbox(smx_simcall_t simcall)
423 {
424   return simgrid::simix::unmarshal_raw<smx_mailbox_t>(simcall->args_[1]);
425 }
426 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg)
427 {
428   simgrid::simix::marshal<smx_mailbox_t>(simcall->args_[1], arg);
429 }
430 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall)
431 {
432   return simgrid::simix::unmarshal<double>(simcall->args_[2]);
433 }
434 static inline double simcall_comm_isend__getraw__task_size(smx_simcall_t simcall)
435 {
436   return simgrid::simix::unmarshal_raw<double>(simcall->args_[2]);
437 }
438 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg)
439 {
440   simgrid::simix::marshal<double>(simcall->args_[2], arg);
441 }
442 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall)
443 {
444   return simgrid::simix::unmarshal<double>(simcall->args_[3]);
445 }
446 static inline double simcall_comm_isend__getraw__rate(smx_simcall_t simcall)
447 {
448   return simgrid::simix::unmarshal_raw<double>(simcall->args_[3]);
449 }
450 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg)
451 {
452   simgrid::simix::marshal<double>(simcall->args_[3], arg);
453 }
454 static inline unsigned char* simcall_comm_isend__get__src_buff(smx_simcall_t simcall)
455 {
456   return simgrid::simix::unmarshal<unsigned char*>(simcall->args_[4]);
457 }
458 static inline unsigned char* simcall_comm_isend__getraw__src_buff(smx_simcall_t simcall)
459 {
460   return simgrid::simix::unmarshal_raw<unsigned char*>(simcall->args_[4]);
461 }
462 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, unsigned char* arg)
463 {
464   simgrid::simix::marshal<unsigned char*>(simcall->args_[4], arg);
465 }
466 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall)
467 {
468   return simgrid::simix::unmarshal<size_t>(simcall->args_[5]);
469 }
470 static inline size_t simcall_comm_isend__getraw__src_buff_size(smx_simcall_t simcall)
471 {
472   return simgrid::simix::unmarshal_raw<size_t>(simcall->args_[5]);
473 }
474 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg)
475 {
476   simgrid::simix::marshal<size_t>(simcall->args_[5], arg);
477 }
478 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall)
479 {
480   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args_[6]);
481 }
482 static inline simix_match_func_t simcall_comm_isend__getraw__match_fun(smx_simcall_t simcall)
483 {
484   return simgrid::simix::unmarshal_raw<simix_match_func_t>(simcall->args_[6]);
485 }
486 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg)
487 {
488   simgrid::simix::marshal<simix_match_func_t>(simcall->args_[6], arg);
489 }
490 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall)
491 {
492   return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args_[7]);
493 }
494 static inline simix_clean_func_t simcall_comm_isend__getraw__clean_fun(smx_simcall_t simcall)
495 {
496   return simgrid::simix::unmarshal_raw<simix_clean_func_t>(simcall->args_[7]);
497 }
498 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg)
499 {
500   simgrid::simix::marshal<simix_clean_func_t>(simcall->args_[7], arg);
501 }
502 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall)
503 {
504   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args_[8]);
505 }
506 static inline simix_copy_data_func_t simcall_comm_isend__getraw__copy_data_fun(smx_simcall_t simcall)
507 {
508   return simgrid::simix::unmarshal_raw<simix_copy_data_func_t>(simcall->args_[8]);
509 }
510 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg)
511 {
512   simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args_[8], arg);
513 }
514 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall)
515 {
516   return simgrid::simix::unmarshal<void*>(simcall->args_[9]);
517 }
518 static inline void* simcall_comm_isend__getraw__data(smx_simcall_t simcall)
519 {
520   return simgrid::simix::unmarshal_raw<void*>(simcall->args_[9]);
521 }
522 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg)
523 {
524   simgrid::simix::marshal<void*>(simcall->args_[9], arg);
525 }
526 static inline bool simcall_comm_isend__get__detached(smx_simcall_t simcall)
527 {
528   return simgrid::simix::unmarshal<bool>(simcall->args_[10]);
529 }
530 static inline bool simcall_comm_isend__getraw__detached(smx_simcall_t simcall)
531 {
532   return simgrid::simix::unmarshal_raw<bool>(simcall->args_[10]);
533 }
534 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, bool arg)
535 {
536   simgrid::simix::marshal<bool>(simcall->args_[10], arg);
537 }
538 static inline boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> simcall_comm_isend__get__result(smx_simcall_t simcall)
539 {
540   return simgrid::simix::unmarshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result_);
541 }
542 static inline simgrid::kernel::activity::ActivityImpl* simcall_comm_isend__getraw__result(smx_simcall_t simcall)
543 {
544   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::ActivityImpl*>(simcall->result_);
545 }
546 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> result)
547 {
548   simgrid::simix::marshal<boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl>>(simcall->result_, result);
549 }
550
551 static inline simgrid::kernel::activity::CommImpl* simcall_comm_test__get__comm(smx_simcall_t simcall)
552 {
553   return simgrid::simix::unmarshal<simgrid::kernel::activity::CommImpl*>(simcall->args_[0]);
554 }
555 static inline simgrid::kernel::activity::CommImpl* simcall_comm_test__getraw__comm(smx_simcall_t simcall)
556 {
557   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::CommImpl*>(simcall->args_[0]);
558 }
559 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl* arg)
560 {
561   simgrid::simix::marshal<simgrid::kernel::activity::CommImpl*>(simcall->args_[0], arg);
562 }
563 static inline bool simcall_comm_test__get__result(smx_simcall_t simcall)
564 {
565   return simgrid::simix::unmarshal<bool>(simcall->result_);
566 }
567 static inline bool simcall_comm_test__getraw__result(smx_simcall_t simcall)
568 {
569   return simgrid::simix::unmarshal_raw<bool>(simcall->result_);
570 }
571 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, bool result)
572 {
573   simgrid::simix::marshal<bool>(simcall->result_, result);
574 }
575
576 static inline simgrid::kernel::activity::CommImpl** simcall_comm_testany__get__comms(smx_simcall_t simcall)
577 {
578   return simgrid::simix::unmarshal<simgrid::kernel::activity::CommImpl**>(simcall->args_[0]);
579 }
580 static inline simgrid::kernel::activity::CommImpl** simcall_comm_testany__getraw__comms(smx_simcall_t simcall)
581 {
582   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::CommImpl**>(simcall->args_[0]);
583 }
584 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl** arg)
585 {
586   simgrid::simix::marshal<simgrid::kernel::activity::CommImpl**>(simcall->args_[0], arg);
587 }
588 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall)
589 {
590   return simgrid::simix::unmarshal<size_t>(simcall->args_[1]);
591 }
592 static inline size_t simcall_comm_testany__getraw__count(smx_simcall_t simcall)
593 {
594   return simgrid::simix::unmarshal_raw<size_t>(simcall->args_[1]);
595 }
596 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg)
597 {
598   simgrid::simix::marshal<size_t>(simcall->args_[1], arg);
599 }
600 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall)
601 {
602   return simgrid::simix::unmarshal<int>(simcall->result_);
603 }
604 static inline int simcall_comm_testany__getraw__result(smx_simcall_t simcall)
605 {
606   return simgrid::simix::unmarshal_raw<int>(simcall->result_);
607 }
608 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result)
609 {
610   simgrid::simix::marshal<int>(simcall->result_, result);
611 }
612
613 static inline simgrid::kernel::activity::CommImpl** simcall_comm_waitany__get__comms(smx_simcall_t simcall)
614 {
615   return simgrid::simix::unmarshal<simgrid::kernel::activity::CommImpl**>(simcall->args_[0]);
616 }
617 static inline simgrid::kernel::activity::CommImpl** simcall_comm_waitany__getraw__comms(smx_simcall_t simcall)
618 {
619   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::CommImpl**>(simcall->args_[0]);
620 }
621 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl** arg)
622 {
623   simgrid::simix::marshal<simgrid::kernel::activity::CommImpl**>(simcall->args_[0], arg);
624 }
625 static inline size_t simcall_comm_waitany__get__count(smx_simcall_t simcall)
626 {
627   return simgrid::simix::unmarshal<size_t>(simcall->args_[1]);
628 }
629 static inline size_t simcall_comm_waitany__getraw__count(smx_simcall_t simcall)
630 {
631   return simgrid::simix::unmarshal_raw<size_t>(simcall->args_[1]);
632 }
633 static inline void simcall_comm_waitany__set__count(smx_simcall_t simcall, size_t arg)
634 {
635   simgrid::simix::marshal<size_t>(simcall->args_[1], arg);
636 }
637 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall)
638 {
639   return simgrid::simix::unmarshal<double>(simcall->args_[2]);
640 }
641 static inline double simcall_comm_waitany__getraw__timeout(smx_simcall_t simcall)
642 {
643   return simgrid::simix::unmarshal_raw<double>(simcall->args_[2]);
644 }
645 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg)
646 {
647   simgrid::simix::marshal<double>(simcall->args_[2], arg);
648 }
649 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall)
650 {
651   return simgrid::simix::unmarshal<int>(simcall->result_);
652 }
653 static inline int simcall_comm_waitany__getraw__result(smx_simcall_t simcall)
654 {
655   return simgrid::simix::unmarshal_raw<int>(simcall->result_);
656 }
657 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result)
658 {
659   simgrid::simix::marshal<int>(simcall->result_, result);
660 }
661
662 static inline simgrid::kernel::activity::CommImpl* simcall_comm_wait__get__comm(smx_simcall_t simcall)
663 {
664   return simgrid::simix::unmarshal<simgrid::kernel::activity::CommImpl*>(simcall->args_[0]);
665 }
666 static inline simgrid::kernel::activity::CommImpl* simcall_comm_wait__getraw__comm(smx_simcall_t simcall)
667 {
668   return simgrid::simix::unmarshal_raw<simgrid::kernel::activity::CommImpl*>(simcall->args_[0]);
669 }
670 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl* arg)
671 {
672   simgrid::simix::marshal<simgrid::kernel::activity::CommImpl*>(simcall->args_[0], arg);
673 }
674 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall)
675 {
676   return simgrid::simix::unmarshal<double>(simcall->args_[1]);
677 }
678 static inline double simcall_comm_wait__getraw__timeout(smx_simcall_t simcall)
679 {
680   return simgrid::simix::unmarshal_raw<double>(simcall->args_[1]);
681 }
682 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg)
683 {
684   simgrid::simix::marshal<double>(simcall->args_[1], arg);
685 }
686
687 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall)
688 {
689   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args_[0]);
690 }
691 static inline std::function<void()> const* simcall_run_kernel__getraw__code(smx_simcall_t simcall)
692 {
693   return simgrid::simix::unmarshal_raw<std::function<void()> const*>(simcall->args_[0]);
694 }
695 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg)
696 {
697   simgrid::simix::marshal<std::function<void()> const*>(simcall->args_[0], arg);
698 }
699
700 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall)
701 {
702   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args_[0]);
703 }
704 static inline std::function<void()> const* simcall_run_blocking__getraw__code(smx_simcall_t simcall)
705 {
706   return simgrid::simix::unmarshal_raw<std::function<void()> const*>(simcall->args_[0]);
707 }
708 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg)
709 {
710   simgrid::simix::marshal<std::function<void()> const*>(simcall->args_[0], arg);
711 }
712
713 /* The prototype of all simcall handlers, automatically generated for you */
714
715 XBT_PRIVATE void simcall_HANDLER_execution_waitany_for(smx_simcall_t simcall, simgrid::kernel::activity::ExecImpl** execs, size_t count, double timeout);
716 XBT_PRIVATE void simcall_HANDLER_comm_recv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, unsigned char* 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);
717 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, unsigned char* 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);
718 XBT_PRIVATE void simcall_HANDLER_comm_send(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, unsigned char* 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);
719 XBT_PRIVATE boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, unsigned char* 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, bool detached);
720 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl* comm);
721 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl** comms, size_t count);
722 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl** comms, size_t count, double timeout);
723 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, simgrid::kernel::activity::CommImpl* comm, double timeout);