annotate PrivateQueue.h @ 15:1ab93714b9c1

Merge pushPrivQ into VMS_malloc brch
author SeanHalle
date Thu, 11 Nov 2010 05:16:13 -0800
parents 3562716ebdbd
children 8fd77f9430f0
rev   line source
Me@0 1 /*
Me@0 2 * Copyright 2009 OpenSourceStewardshipFoundation.org
Me@0 3 * Licensed under GNU General Public License version 2
Me@0 4 *
Me@0 5 * Author: seanhalle@yahoo.com
Me@0 6 */
Me@0 7
Me@0 8 #ifndef _PRIVATE_QUEUE_H
Me@0 9 #define _PRIVATE_QUEUE_H
Me@0 10
Me@11 11 #include "../VMS_primitive_data_types.h"
Me@0 12
Me@0 13 #define TRUE 1
Me@0 14 #define FALSE 0
Me@0 15
Me@0 16 #define LOCKED 1
Me@0 17 #define UNLOCKED 0
Me@0 18
Me@0 19
Me@0 20 typedef struct
Me@0 21 { void **insertPos;
Me@0 22 void **extractPos;
Me@0 23 void **startOfData; //data is pointers
Me@0 24 void **endOfData; //set when alloc data
Me@0 25 }
Me@0 26 PrivQueueStruc;
Me@0 27
Me@0 28
Me@0 29 PrivQueueStruc* makePrivQ ( );
Me@0 30 void* readPrivQ ( PrivQueueStruc *Q );
Me@6 31 void writePrivQ( void *in, PrivQueueStruc *Q );
Me@11 32 int32 writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); //return
Me@3 33 // false when full
Me@11 34 int32 numInPrivQ( PrivQueueStruc *Q );
SeanHalle@12 35 void pushPrivQ( void * in, PrivQueueStruc* Q );
Me@0 36
Me@0 37 #endif /* _PRIVATE_QUEUE_H */
Me@0 38