comparison PrivateQueue.h @ 39:a7a6e170708c

added casts to eliminate warnings about volatile flag
author Sean Halle <seanhalle@yahoo.com>
date Mon, 10 Sep 2012 01:57:14 -0700
parents a74011c0b78b
children cb29e773f76f d01d48b023ca
comparison
equal deleted inserted replaced
13:08ec07c7ff3c 16:0b542334c041
30 PrivQueueStruc; 30 PrivQueueStruc;
31 31
32 typedef void (*DynArrayFnPtr) ( void * ); //fn has to cast void * 32 typedef void (*DynArrayFnPtr) ( void * ); //fn has to cast void *
33 33
34 PrivQueueStruc* makePrivQ ( ); 34 PrivQueueStruc* makePrivQ ( );
35 bool32 isEmptyPrivQ ( PrivQueueStruc *Q ); //ret TRUE if empty
36 void* peekPrivQ ( PrivQueueStruc *Q ); //ret NULL if empty
35 void* readPrivQ ( PrivQueueStruc *Q ); //ret NULL if empty 37 void* readPrivQ ( PrivQueueStruc *Q ); //ret NULL if empty
36 void writePrivQ( void *in, PrivQueueStruc *Q ); 38 void writePrivQ( void *in, PrivQueueStruc *Q );
37 //return false when full 39 //return false when full
38 bool32 writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); 40 bool32 writeIfSpacePrivQ( void * in, PrivQueueStruc* Q );
39 int32 numInPrivQ( PrivQueueStruc *Q ); 41 int32 numInPrivQ( PrivQueueStruc *Q );