#include "private.h"
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
/**
* \brief Returns a host given its name.
*
SIMIX_request_push(&req);
}
+#ifdef HAVE_TRACING
+/**
+ * \brief Set the category of an execution action.
+ *
+ * This functions changes the priority only. It calls a surf function.
+ * \param execution The execution action
+ * \param priority The new priority
+ */
+void SIMIX_req_host_execution_set_category(smx_action_t execution, const char *category)
+{
+ s_smx_req_t req;
+
+ req.call = REQ_HOST_EXECUTION_SET_CATEGORY;
+ req.host_execution_set_category.execution = execution;
+ req.host_execution_set_category.category = xbt_strdup (category);
+ SIMIX_request_push(&req);
+}
+#endif
+
/**
* \brief Waits for the completion of an execution action.
*
return req.comm_waitany.result;
}
+int SIMIX_req_comm_testany(xbt_dynar_t comms)
+{
+ s_smx_req_t req;
+ if (xbt_dynar_length(comms)==0)
+ return -1;
+
+ WARN0("SIMIX_comm_testany is not implemented yet. Using waitany instead. This changes the semantic...");
+ req.call = REQ_COMM_WAITANY;
+ req.comm_waitany.comms = comms;
+
+ SIMIX_request_push(&req);
+ return req.comm_waitany.result;
+}
+
void SIMIX_req_comm_wait(smx_action_t comm, double timeout)
{
s_smx_req_t req;