annotate PrivateQueue.h @ 24:677afc259a58

fix branch to compile with new folder structure
author Merten Sach <msach@mailbox.tu-berlin.de>
date Mon, 13 Feb 2012 19:32:12 +0100
parents 8fd77f9430f0
children
rev   line source
msach@24 1 /*
msach@24 2 * Copyright 2009 OpenSourceStewardshipFoundation.org
msach@24 3 * Licensed under GNU General Public License version 2
msach@24 4 *
msach@24 5 * Author: seanhalle@yahoo.com
msach@24 6 */
msach@24 7
msach@24 8 #ifndef _PRIVATE_QUEUE_H
msach@24 9 #define _PRIVATE_QUEUE_H
msach@24 10
msach@24 11 #include "VMS_Implementations/VMS_impl/VMS_primitive_data_types.h"
msach@24 12
msach@24 13 #define TRUE 1
msach@24 14 #define FALSE 0
msach@24 15
msach@24 16 #define LOCKED 1
msach@24 17 #define UNLOCKED 0
msach@24 18
msach@24 19
msach@24 20 typedef struct
msach@24 21 { void **insertPos;
msach@24 22 void **extractPos;
msach@24 23 void **startOfData; //data is pointers
msach@24 24 void **endOfData; //set when alloc data
msach@24 25 }
msach@24 26 PrivQueueStruc;
msach@24 27
msach@24 28
msach@24 29 PrivQueueStruc* makePrivQ ( );
msach@24 30 void* readPrivQ ( PrivQueueStruc *Q );
msach@24 31 void writePrivQ( void *in, PrivQueueStruc *Q );
msach@24 32 int32 writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); //return
msach@24 33 // false when full
msach@24 34 int32 numInPrivQ( PrivQueueStruc *Q );
msach@24 35 void pushPrivQ( void * in, PrivQueueStruc* Q );
msach@24 36
msach@24 37 #endif /* _PRIVATE_QUEUE_H */
msach@24 38