Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
diff PrivateQueue.h @ 32:a74011c0b78b
fixed expansion of queue, and added numInPrivQ and freePrivQ
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Wed, 14 Mar 2012 22:48:50 -0700 |
| parents | 555cc068a79a |
| children | b9cb01d8ce56 |
line diff
1.1 --- a/PrivateQueue.h Tue Mar 13 18:31:06 2012 -0700 1.2 +++ b/PrivateQueue.h Wed Mar 14 22:48:50 2012 -0700 1.3 @@ -32,12 +32,13 @@ 1.4 typedef void (*DynArrayFnPtr) ( void * ); //fn has to cast void * 1.5 1.6 PrivQueueStruc* makePrivQ ( ); 1.7 -void* readPrivQ ( PrivQueueStruc *Q ); 1.8 +void* readPrivQ ( PrivQueueStruc *Q ); //ret NULL if empty 1.9 void writePrivQ( void *in, PrivQueueStruc *Q ); 1.10 -int writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); //return 1.11 -int numInPrivQ( PrivQueueStruc *Q ); 1.12 - // false when full 1.13 - 1.14 + //return false when full 1.15 +bool32 writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); 1.16 +int32 numInPrivQ( PrivQueueStruc *Q ); 1.17 +void pushPrivQ( void * in, PrivQueueStruc* Q ); 1.18 +void freePrivQ( PrivQueueStruc *Q ); 1.19 1.20 #endif /* _PRIVATE_QUEUE_H */ 1.21
