Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
comparison PrivateQueue.h @ 37:b9cb01d8ce56
First working version
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Wed, 06 Jun 2012 18:00:59 -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 ); |
