[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/timer VirtualizeTimerC.nc, 1.10, 1.11

Jan-Hinrich Hauer janhauer at users.sourceforge.net
Wed Mar 5 10:40:20 PST 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/timer
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv16487

Modified Files:
	VirtualizeTimerC.nc 
Log Message:
Bugfix for a bug in the timer system that was first reported here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1572439&group_id=28656&atid=393934

It showed up when you used two Timer interfaces (e.g. provided by two TimerMilliC() instances) and Timer2.startOneShot() was called withinTimer1.fired() and in addition (1) Timer2 had a higher internal interface ID (unique(UQ_TIMER_MILLI)) than Timer1 and (2) there was some (small) amount of time elapsed before the Timer2.startOneShot() was called in the fired eventhandler. Then, Timer2.fired() was signalled immediately independent of the "dt" parameter in startOneShot(uint32_t dt). This has been fixed now.

For more information see:
http://mail.millennium.berkeley.edu/pipermail/tinyos-devel/2008-March/002573.html



Index: VirtualizeTimerC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** VirtualizeTimerC.nc	12 Dec 2006 18:23:32 -0000	1.10
--- VirtualizeTimerC.nc	5 Mar 2008 18:40:17 -0000	1.11
***************
*** 80,83 ****
--- 80,84 ----
  
  		signal Timer.fired[num]();
+     break;
  	      }
  	  }



More information about the Tinyos-2-commits mailing list