diff PrivateQueue.h @ 41:8fcbe46de60a

bugfixes - peek and enlarge now working properly
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Wed, 19 Dec 2012 15:38:08 +0100
parents cb29e773f76f
children 179144f26c9d
line diff
     1.1 --- a/PrivateQueue.h	Tue Sep 11 04:19:51 2012 -0700
     1.2 +++ b/PrivateQueue.h	Wed Dec 19 15:38:08 2012 +0100
     1.3 @@ -19,6 +19,7 @@
     1.4  #define LOCKED   1
     1.5  #define UNLOCKED 0
     1.6  
     1.7 +#define DEBUG_PRIVATE_Q
     1.8  
     1.9  /* It is the data that is shared so only need one mutex. */
    1.10  typedef struct
    1.11 @@ -26,6 +27,10 @@
    1.12     void      **extractPos;
    1.13     void      **startOfData;  //data is pointers
    1.14     void      **endOfData;    //set when alloc data
    1.15 +#ifdef DEBUG_PRIVATE_Q
    1.16 +   int numWrites;
    1.17 +   int numReads;
    1.18 +#endif
    1.19   }
    1.20  PrivQueueStruc;
    1.21