X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e2c10f61cfd4d58faa73f006aa74def2c73c8860..a093e1d3dad9c1e9af6473e1f96e7d5f76a4dac1:/include/gras/timer.h diff --git a/include/gras/timer.h b/include/gras/timer.h index 8e84f3e26d..40c3062480 100644 --- a/include/gras/timer.h +++ b/include/gras/timer.h @@ -1,9 +1,8 @@ -/* $Id$ */ - /* timer - delayed and repetitive tasks */ /* module's public interface exported to end user. */ -/* Copyright (c) 2005 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2005, 2006, 2007, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -29,27 +28,27 @@ SG_BEGIN_DECL() * and such within a specific process. * * Timers are served by the gras_handle() function: if there is an elapsed - * timer, the associated code gets executed before any incomming connexion + * timer, the associated code gets executed before any incoming connexion * are checked. * * The section \ref GRAS_ex_timer constitutes a perfect example of these features. * * @{ */ +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); - 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); - - 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); +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); - XBT_PUBLIC void gras_timer_cancel_delay_all(void); - XBT_PUBLIC void gras_timer_cancel_repeat_all(void); +XBT_PUBLIC(void) gras_timer_cancel_delay_all(void); +XBT_PUBLIC(void) gras_timer_cancel_repeat_all(void); - XBT_PUBLIC void gras_timer_cancel_all(void); +XBT_PUBLIC(void) gras_timer_cancel_all(void); /** @} */ SG_END_DECL() - -#endif /* GRAS_TIMER_H */ +#endif /* GRAS_TIMER_H */