comparison BlockingQueue.h @ 9:62326cc8e6f4

This branch has replace malloc and free with VMS__malloc and VMS__free
author Me
date Sun, 31 Oct 2010 20:24:00 -0700
parents 08f0b4da7610
children
comparison
equal deleted inserted replaced
2:d2445bbc0419 3:ba8256f74a01
40 40
41 41
42 //========== CAS based queue ========== 42 //========== CAS based queue ==========
43 typedef 43 typedef
44 struct 44 struct
45 { volatile int insertLock; 45 { int insertLock;
46 volatile int extractLock; 46 int extractLock;
47 volatile void* *insertPos; 47 void* *insertPos;
48 volatile void* *extractPos; 48 void* *extractPos;
49 void* startOfData[1024]; //data is pointers 49 void* startOfData[1024]; //data is pointers
50 void* *endOfData; //set when make queue 50 void* *endOfData; //set when make queue
51 } 51 }
52 CASQueueStruc; 52 CASQueueStruc;
53 53