Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
comparison BlockingQueue.h @ 18:7c9e00ff1bf4
fixed queue enlarging function
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 22 Jun 2011 18:49:17 +0200 |
| 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 |
