[Tinyos-2-commits] CVS: tinyos-2.x/tos/system QueueC.nc,1.4,1.5

David Gay idgay at users.sourceforge.net
Fri May 2 12:52:50 PDT 2008


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

Modified Files:
	QueueC.nc 
Log Message:
mod is slow

Index: QueueC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/system/QueueC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** QueueC.nc	12 Dec 2006 18:23:47 -0000	1.4
--- QueueC.nc	2 May 2008 19:52:48 -0000	1.5
***************
*** 88,92 ****
      if (!call Queue.empty()) {
        head++;
!       head %= QUEUE_SIZE;
        size--;
        printQueue();
--- 88,92 ----
      if (!call Queue.empty()) {
        head++;
!       if (head == QUEUE_SIZE) head = 0;
        size--;
        printQueue();
***************
*** 100,104 ****
        queue[tail] = newVal;
        tail++;
!       tail %= QUEUE_SIZE;
        size++;
        printQueue();
--- 100,104 ----
        queue[tail] = newVal;
        tail++;
!       if (tail == QUEUE_SIZE) tail = 0;
        size++;
        printQueue();



More information about the Tinyos-2-commits mailing list