X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9189fe94c14ef9e31142d1603a1979ea7e731a0a..a3570625c9460617ccad1803b50bc4f1793b6376:/include/gras/timer.h diff --git a/include/gras/timer.h b/include/gras/timer.h index 8c5e418e14..7e61237bc9 100644 --- a/include/gras/timer.h +++ b/include/gras/timer.h @@ -13,10 +13,10 @@ #include "xbt/misc.h" -BEGIN_DECL() +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 @@ -36,22 +36,20 @@ BEGIN_DECL() * * @{ */ +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); - typedef void (*void_f_void_t)(void); +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_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_all(void); +XBT_PUBLIC(void) gras_timer_cancel_repeat_all(void); - void gras_timer_cancel_delay(double interval, void_f_void_t action); - void gras_timer_cancel_repeat(double interval, void_f_void_t action); - - 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); /** @} */ -END_DECL() - +SG_END_DECL() #endif /* GRAS_TIMER_H */