/** \ingroup m_process_management * \brief Migrates a process to another location. * * This function checks whether \a process and \a host are valid pointers and change the value of the #msg_host_t on * which \a process is running. */ msg_error_t MSG_process_migrate(msg_process_t process, msg_host_t host) { simdata_process_t simdata = (simdata_process_t) simcall_process_get_data(process); simdata->m_host = host; msg_host_t now = simdata->m_host; TRACE_msg_process_change_host(process, now, host); simcall_process_set_host(process, host); return MSG_OK; }
/** \ingroup m_process_management * \brief Migrates an agent to another location. * * This function checks whether \a process and \a host are valid pointers and change the value of the #m_host_t on which \a process is running. */ MSG_error_t MSG_process_migrate(m_process_t process, m_host_t host) { simdata_process_t simdata = SIMIX_req_process_get_data(process); simdata->m_host = host; #ifdef HAVE_TRACING m_host_t now = simdata->m_host; TRACE_msg_process_change_host(process, now, host); #endif SIMIX_req_process_change_host(process, host->simdata->smx_host); return MSG_OK; }
/** \ingroup m_process_management * \brief Migrates a process to another location. * * This function checks whether \a process and \a host are valid pointers and change the value of the #msg_host_t on which \a process is running. */ msg_error_t MSG_process_migrate(msg_process_t process, msg_host_t host) { simdata_process_t simdata = simcall_process_get_data(process); simdata->m_host = host; #ifdef HAVE_TRACING msg_host_t now = simdata->m_host; TRACE_msg_process_change_host(process, now, host); #endif simcall_process_change_host(process, host); return MSG_OK; }