[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/tosthreads/system TinyThreadSchedulerP.nc, 1.8, 1.9

Kevin Klues klueska at users.sourceforge.net
Wed Oct 22 00:01:26 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/tosthreads/system
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv28893/system

Modified Files:
	TinyThreadSchedulerP.nc 
Log Message:
small optimization to join wakeup loop

Index: TinyThreadSchedulerP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/tosthreads/system/TinyThreadSchedulerP.nc,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** TinyThreadSchedulerP.nc	22 Oct 2008 05:37:32 -0000	1.8
--- TinyThreadSchedulerP.nc	22 Oct 2008 07:01:23 -0000	1.9
***************
*** 151,154 ****
--- 151,158 ----
      k = 0;
      for(i=0; i<sizeof(t->joinedOnMe); i++) {
+       if(t->joinedOnMe[i] == 0) {
+         k+=8;
+         continue;
+       }
        for(j=0; j<8; j++) {
          if(t->joinedOnMe[i] & 0x1)



More information about the Tinyos-2-commits mailing list