X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3af36b8af09df7e18d99e63a74052113a1650410..6e9085979401423afcde6d001562b6ffd23021e8:/src/simix/smx_user.c diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index 60b71b1a9f..dae8115567 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -268,6 +268,25 @@ void SIMIX_req_host_execution_set_priority(smx_action_t execution, double priori 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. *