simcall_BODY_process_suspend(process);
}
-/**
- * \ingroup simix_process_management
- * \brief Resumes a suspended process.
- *
- * This function resumes a suspended process by resuming the synchro
- * it was waiting for completion.
- *
- * \param process a SIMIX process
- */
-void simcall_process_resume(smx_actor_t process)
-{
- simcall_BODY_process_resume(process);
-}
-
/**
* \ingroup simix_process_management
* \brief Returns the amount of SIMIX processes in the system
if (kill_time <= SIMIX_get_clock() || simix_global->kill_process_function == nullptr)
return;
- XBT_DEBUG("Set kill time %f for process %s@%s", kill_time, process->cname(), process->host->cname());
+ XBT_DEBUG("Set kill time %f for process %s@%s", kill_time, process->cname(), process->host->getCname());
process->kill_timer = SIMIX_timer_set(kill_time, [=] {
simix_global->kill_process_function(process);
process->kill_timer=nullptr;
});
}
-/**
- * \ingroup simix_process_management
- * \brief Get the kill time of a process (or 0 if unset).
- */
-double simcall_process_get_kill_time(smx_actor_t process) {
- return SIMIX_timer_get_date(process->kill_timer);
-}
/**
* \ingroup simix_process_management
* \brief Return the properties
*
- * This functions returns the properties associated with this process
+ * This function returns the properties associated with this process
*/
xbt_dict_t simcall_process_get_properties(smx_actor_t process)
{
- return SIMIX_process_get_properties(process);
+ return process->properties;
+ ;
}
/**
* \ingroup simix_process_management