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. @@ -39,7 +42,12 @@

Defines

TIMER_HANDLE last_timer_raw = -1
-


Define Documentation

+

Detailed Description

+
Author:
Edouard TISSERANT and Francis DUPIN
+
Date:
Tue Jun 5 09:32:32 2007
+ +

+Definition in file timer.c.


Define Documentation

@@ -62,7 +70,9 @@

-Definition at line 35 of file timer.c. +Definition at line 44 of file timer.c. +

+Referenced by TimeDispatch().


Function Documentation

@@ -83,11 +93,22 @@

- -

-Definition at line 87 of file timer.c. -

-References last_timer_raw, and timers. +----- Use this to remove an alarm ----

+

Parameters:
+ + +
handle 
+
+
Returns:
+ +

+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().

@@ -134,11 +155,33 @@

- -

-Definition at line 38 of file timer.c. -

-References last_timer_raw, and timers. +------- Use this to declare a new alarm ------

+

Parameters:
+ + + + + + +
d 
id 
callback 
value 
period 
+
+
Returns:
+ +

+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().

@@ -157,11 +200,29 @@

- -

-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.


Variable Documentation

@@ -179,7 +240,9 @@

-Definition at line 33 of file timer.c. +Definition at line 42 of file timer.c. +

+Referenced by DelAlarm(), SetAlarm(), and TimeDispatch().

@@ -196,7 +259,9 @@

-Definition at line 30 of file timer.c. +Definition at line 39 of file timer.c. +

+Referenced by DelAlarm(), SetAlarm(), and TimeDispatch().

@@ -213,10 +278,12 @@

-Definition at line 32 of file timer.c. - -

-


Generated on Mon Jun 4 17:09:27 2007 for CanFestival by  +Definition at line 41 of file timer.c. +

+Referenced by TimeDispatch(). + +

+


Generated on Tue Jun 5 18:32:11 2007 for CanFestival by  doxygen 1.5.1