X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/494616a1d79ab04ce6f0309a5cbb29ee5876c379..0bfb3cdebf6d1a0105a7a738a602015ed583a39e:/include/gras/timer.h diff --git a/include/gras/timer.h b/include/gras/timer.h index f12c599233..e1af19f978 100644 --- a/include/gras/timer.h +++ b/include/gras/timer.h @@ -16,7 +16,7 @@ SG_BEGIN_DECL() /** @addtogroup GRAS_timer - * @brief Delayed and repetitive tasks (Communication facility) + * @brief Delayed and repetitive tasks * * This is how to have a specific function called only once after the * specified amount of time or a function executed every 5 mn until it gets @@ -37,18 +37,16 @@ SG_BEGIN_DECL() * @{ */ - typedef void (*void_f_void_t)(void); + XBT_PUBLIC(void) gras_timer_delay(double delay, void_f_void_t action); + XBT_PUBLIC(void) gras_timer_repeat(double interval, void_f_void_t action); - void gras_timer_delay(double delay, void_f_void_t action); - void gras_timer_repeat(double interval, void_f_void_t action); + XBT_PUBLIC(void) gras_timer_cancel_delay(double interval, void_f_void_t action); + XBT_PUBLIC(void) gras_timer_cancel_repeat(double interval, void_f_void_t action); - void gras_timer_cancel_delay(double interval, void_f_void_t action); - void gras_timer_cancel_repeat(double interval, void_f_void_t action); + XBT_PUBLIC(void) gras_timer_cancel_delay_all(void); + XBT_PUBLIC(void) gras_timer_cancel_repeat_all(void); - void gras_timer_cancel_delay_all(void); - void gras_timer_cancel_repeat_all(void); - - void gras_timer_cancel_all(void); + XBT_PUBLIC(void) gras_timer_cancel_all(void); /** @} */