Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
diff PrivateQueue.h @ 34:c5d2f2a94133
updated to fixed versions from MC_shared brch, then removed VMS_ from malloc
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Wed, 14 Mar 2012 23:02:28 -0700 |
| parents | 1ed562d601d9 |
| children | d6da470bbd38 |
line diff
1.1 --- a/PrivateQueue.h Mon Feb 13 13:29:51 2012 -0800 1.2 +++ b/PrivateQueue.h Wed Mar 14 23:02:28 2012 -0700 1.3 @@ -8,7 +8,9 @@ 1.4 #ifndef _PRIVATE_QUEUE_H 1.5 #define _PRIVATE_QUEUE_H 1.6 1.7 -#include <pthread.h> 1.8 + 1.9 +#include "VMS_impl/VMS_primitive_data_types.h" 1.10 + 1.11 1.12 #define TRUE 1 1.13 #define FALSE 0 1.14 @@ -26,12 +28,16 @@ 1.15 } 1.16 PrivQueueStruc; 1.17 1.18 +typedef void (*DynArrayFnPtr) ( void * ); //fn has to cast void * 1.19 1.20 PrivQueueStruc* makePrivQ ( ); 1.21 -void* readPrivQ ( PrivQueueStruc *Q ); 1.22 +void* readPrivQ ( PrivQueueStruc *Q ); //ret NULL if empty 1.23 void writePrivQ( void *in, PrivQueueStruc *Q ); 1.24 -int writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); //return 1.25 - // false when full 1.26 + //return false when full 1.27 +bool32 writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); 1.28 +int32 numInPrivQ( PrivQueueStruc *Q ); 1.29 +void pushPrivQ( void * in, PrivQueueStruc* Q ); 1.30 +void freePrivQ( PrivQueueStruc *Q ); 1.31 1.32 #endif /* _PRIVATE_QUEUE_H */ 1.33
