diff -r 2cb34a4ac65a -r 6b5a4c21e061 doc/doxygen/html/timer_8c.html
--- a/doc/doxygen/html/timer_8c.html Tue Jun 05 17:34:33 2007 +0200
+++ b/doc/doxygen/html/timer_8c.html Tue Jun 05 18:43:21 2007 +0200
@@ -19,6 +19,9 @@
#include "timer.h"
+Include dependency graph for timer.c:
Go to the source code of this file.
Defines | |
TIMER_HANDLE | last_timer_raw = -1 |
+Definition in file timer.c.
-Definition at line 35 of file timer.c. +Definition at line 44 of file timer.c. +
+Referenced by TimeDispatch().
- -
-Definition at line 87 of file timer.c. -
-References last_timer_raw, and timers. +----- Use this to remove an alarm ----
+
handle |
+Quick and dirty. system timer will continue to be trigged, but no action will be preformed. +
+Definition at line 112 of file timer.c. +
+References last_timer_raw, and timers. +
+Referenced by heartbeatStop(), proceedNODE_GUARD(), ProducerHearbeatAlarm(), and stopSYNC().
- -
-Definition at line 38 of file timer.c. -
-References last_timer_raw, and timers. +------- Use this to declare a new alarm ------
+
d | ||
id | ||
callback | ||
value | ||
period |
+in order to decide new timer setting we have to run over all timer rows
+if something to store
+and empty row
+just store
+if successfull
+set next wakeup alarm if new entry is sooner than others, or if it is alone
+printf("elapsed_time=%d real_timer_value=%d total_sleep_time=%d\n", elapsed_time, real_timer_value, total_sleep_time);
+printf("SetAlarm() return %d\n", row_number); +
+Definition at line 57 of file timer.c. +
+References last_timer_raw, and timers. +
+Referenced by heartbeatInit(), proceedNODE_GUARD(), and startSYNC().
- -
-Definition at line 104 of file timer.c. -
-References last_timer_raw, min_val, timers, and total_sleep_time. +------ TimeDispatch is called on each timer expiration ---- +
+used to compute when should normaly occur next wakeup
+First run : change timer state depending on time
+Get time since timer signal
+if row is active
+to be trigged
+if simply outdated
+ask for trig
+or period have expired
+set val as interval, with overrun correction
+Check if this new timer value is the soonest
+Each armed timer value in decremented.
+Check if this new timer value is the soonest
+Remember how much time we should sleep.
+Set timer to soonest occurence
+Then trig them or not.
+reset trig state (will be free if not periodic)
+trig ! +
+Definition at line 131 of file timer.c. +
+References last_timer_raw, min_val, timers, and total_sleep_time.
-Definition at line 33 of file timer.c. +Definition at line 42 of file timer.c. +
+Referenced by DelAlarm(), SetAlarm(), and TimeDispatch().
-Definition at line 30 of file timer.c. +Definition at line 39 of file timer.c. +
+Referenced by DelAlarm(), SetAlarm(), and TimeDispatch().
-Definition at line 32 of file timer.c. - -
-
+Referenced by TimeDispatch(). + +
+