return simcall<smx_actor_t, smx_actor_t>(SIMCALL_PROCESS_RESTART, process);
}
-inline static smx_mailbox_t simcall_BODY_mbox_create(const char* name) {
- /* Go to that function to follow the code flow through the simcall barrier */
- if (0) SIMIX_mbox_create(name);
- return simcall<smx_mailbox_t, const char*>(SIMCALL_MBOX_CREATE, name);
- }
-
-inline static void simcall_BODY_mbox_set_receiver(smx_mailbox_t mbox, smx_actor_t receiver) {
- /* Go to that function to follow the code flow through the simcall barrier */
- if (0) SIMIX_mbox_set_receiver(mbox, receiver);
- return simcall<void, smx_mailbox_t, smx_actor_t>(SIMCALL_MBOX_SET_RECEIVER, mbox, receiver);
- }
-
inline static smx_activity_t simcall_BODY_comm_iprobe(smx_mailbox_t mbox, int type, int src, int tag, simix_match_func_t match_fun, void* data) {
/* Go to that function to follow the code flow through the simcall barrier */
if (0) simcall_HANDLER_comm_iprobe(&SIMIX_process_self()->simcall, mbox, type, src, tag, match_fun, data);
return simcall<int, smx_file_t, const char*>(SIMCALL_FILE_MOVE, fd, fullpath);
}
-inline static sg_size_t simcall_BODY_storage_get_free_size(smx_storage_t storage) {
- /* Go to that function to follow the code flow through the simcall barrier */
- if (0) simcall_HANDLER_storage_get_free_size(&SIMIX_process_self()->simcall, storage);
- return simcall<sg_size_t, smx_storage_t>(SIMCALL_STORAGE_GET_FREE_SIZE, storage);
- }
-
-inline static sg_size_t simcall_BODY_storage_get_used_size(smx_storage_t name) {
- /* Go to that function to follow the code flow through the simcall barrier */
- if (0) simcall_HANDLER_storage_get_used_size(&SIMIX_process_self()->simcall, name);
- return simcall<sg_size_t, smx_storage_t>(SIMCALL_STORAGE_GET_USED_SIZE, name);
- }
-
inline static xbt_dict_t simcall_BODY_storage_get_properties(smx_storage_t storage) {
/* Go to that function to follow the code flow through the simcall barrier */
if (0) SIMIX_storage_get_properties(storage);
return simcall<xbt_dict_t, smx_storage_t>(SIMCALL_STORAGE_GET_PROPERTIES, storage);
}
-inline static xbt_dict_t simcall_BODY_storage_get_content(smx_storage_t storage) {
- /* Go to that function to follow the code flow through the simcall barrier */
- if (0) SIMIX_storage_get_content(storage);
- return simcall<xbt_dict_t, smx_storage_t>(SIMCALL_STORAGE_GET_CONTENT, storage);
- }
-
inline static int simcall_BODY_mc_random(int min, int max) {
/* Go to that function to follow the code flow through the simcall barrier */
if (0) simcall_HANDLER_mc_random(&SIMIX_process_self()->simcall, min, max);