Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 12:76a28ba63800 | 13:08ec07c7ff3c |
|---|---|
| 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 void* readPrivQ ( PrivQueueStruc *Q ); | 35 void* readPrivQ ( PrivQueueStruc *Q ); //ret NULL if empty |
| 36 void writePrivQ( void *in, PrivQueueStruc *Q ); | 36 void writePrivQ( void *in, PrivQueueStruc *Q ); |
| 37 int writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); //return | 37 //return false when full |
| 38 int numInPrivQ( PrivQueueStruc *Q ); | 38 bool32 writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); |
| 39 // false when full | 39 int32 numInPrivQ( PrivQueueStruc *Q ); |
| 40 | 40 void pushPrivQ( void * in, PrivQueueStruc* Q ); |
| 41 void freePrivQ( PrivQueueStruc *Q ); | |
| 41 | 42 |
| 42 #endif /* _PRIVATE_QUEUE_H */ | 43 #endif /* _PRIVATE_QUEUE_H */ |
| 43 | 44 |
