X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/076fa30e6cd2164fe1bb38b4b69c5d940585bef1..10420d9401da7efa11b764267dff07a0f24bf978:/include/simgrid/msg.h diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index ce49c902b6..9fd43cb381 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -379,7 +379,17 @@ XBT_PUBLIC(msg_error_t) MSG_process_join(msg_process_t process, double timeout); XBT_PUBLIC(msg_error_t) MSG_process_sleep(double nb_sec); XBT_PUBLIC(void) MSG_task_set_flops_amount(msg_task_t task, double flops_amount); +/* Unable to compile that without -Werror=deprecated-declarations +XBT_ATTRIB_DEPRECATED_v321( "Use MSG_task_get_initial_flops_amount if you want to get initial amounts of flops, or " + "Use MSG_task_get_remaining_work_ratio to get task progress (in order " + "to compute progress in flops)") static inline double MSG_task_get_flops_amount(msg_task_t task) +{ + return MSG_task_get_flops_amount(task); +} +*/ + XBT_PUBLIC(double) MSG_task_get_flops_amount(msg_task_t task); +XBT_PUBLIC(double) MSG_task_get_initial_flops_amount(msg_task_t task); XBT_PUBLIC(double) MSG_task_get_remaining_work_ratio(msg_task_t task); XBT_PUBLIC(void) MSG_task_set_bytes_amount(msg_task_t task, double bytes_amount);