Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
view PrivateQueue.h @ 28:dabefab7d264
fixed include paths -- paths should be set in Netbeans as project settings
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Fri, 09 Mar 2012 22:12:01 -0800 |
| parents | bd38feb38c80 |
| children | e59d39874274 |
line source
1 /*
2 * Copyright 2009 OpenSourceStewardshipFoundation.org
3 * Licensed under GNU General Public License version 2
4 *
5 * Author: seanhalle@yahoo.com
6 */
8 #ifndef _PRIVATE_QUEUE_H
9 #define _PRIVATE_QUEUE_H
12 #include "VMS_impl/VMS_primitive_data_types.h"
13 #include "VMS_impl/vmalloc.h"
16 #define TRUE 1
17 #define FALSE 0
19 #define LOCKED 1
20 #define UNLOCKED 0
23 /* It is the data that is shared so only need one mutex. */
24 typedef struct
25 { void **insertPos;
26 void **extractPos;
27 void **startOfData; //data is pointers
28 void **endOfData; //set when alloc data
29 }
30 PrivQueueStruc;
33 PrivQueueStruc* makePrivQ ( );
34 void* readPrivQ ( PrivQueueStruc *Q );
35 void writePrivQ( void *in, PrivQueueStruc *Q );
36 int writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); //return
37 int numInPrivQ( PrivQueueStruc *Q );
38 // false when full
40 #endif /* _PRIVATE_QUEUE_H */
