* \param argc the number of arguments of the main function
* \param argv the vector of arguments of the main function
* \param cleanup_func the function to call when the context stops
- * \param cleanup_arg the argument of the cleanup_func function
*/
smx_context_t SIMIX_context_new(
xbt_main_func_t code, int argc, char **argv,
/**
* \brief Pushes a communication synchro into a rendez-vous point
* \param mbox The mailbox
- * \param comm The communication synchro
+ * \param synchro The communication synchro
*/
static inline void SIMIX_mbox_push(smx_mailbox_t mbox, smx_synchro_t synchro)
{
/**
* \brief Removes a communication synchro from a rendez-vous point
* \param mbox The rendez-vous point
- * \param comm The communication synchro
+ * \param synchro The communication synchro
*/
void SIMIX_mbox_remove(smx_mailbox_t mbox, smx_synchro_t synchro)
{
/**
* \brief Function to destroy a SIMIX VM host.
*
- * \param host the vm host to destroy (a sg_host_t)
+ * \param vm the vm host to destroy (a sg_host_t)
*/
-void SIMIX_vm_destroy(sg_host_t ind_vm)
+void SIMIX_vm_destroy(sg_host_t vm)
{
/* this code basically performs a similar thing like SIMIX_host_destroy() */
- const char *hostname = sg_host_get_name(ind_vm);
+ const char *hostname = sg_host_get_name(vm);
XBT_DEBUG("destroy %s", hostname);
/* this will call the registered callback function, i.e., SIMIX_host_destroy(). */
- sg_host_simix_destroy(ind_vm);
+ sg_host_simix_destroy(vm);
/* jump to vm_ws_destroy(). The surf level resource will be freed. */
- surf_vm_destroy(ind_vm);
+ surf_vm_destroy(vm);
}
{
sg_host_set_pstate(SIMIX_host_self(), pstate_index);
}
-/**
- * \brief Gets the pstate at which the processor currently running
- *
- * \param pstate_index pstate to switch to
- */
+/** @brief Gets the pstate at which the processor currently running */
int smpi_get_host_pstate() {
return sg_host_get_pstate(SIMIX_host_self());
}