Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
comparison BlockingQueue.c @ 18:7c9e00ff1bf4
fixed queue enlarging function
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 22 Jun 2011 18:49:17 +0200 |
| parents | 3562716ebdbd |
| children | 677afc259a58 |
comparison
equal
deleted
inserted
replaced
| 7:97424a8d98da | 9:c80b3da18d42 |
|---|---|
| 11 #include <pthread.h> | 11 #include <pthread.h> |
| 12 #include <stdlib.h> | 12 #include <stdlib.h> |
| 13 #include <sched.h> | 13 #include <sched.h> |
| 14 | 14 |
| 15 #include "BlockingQueue.h" | 15 #include "BlockingQueue.h" |
| 16 #include "../vmalloc.h" | |
| 16 | 17 |
| 17 #define INC(x) (++x == 1024) ? (x) = 0 : (x) | 18 #define INC(x) (++x == 1024) ? (x) = 0 : (x) |
| 18 | 19 |
| 19 #define SPINLOCK_TRIES 100000 | 20 #define SPINLOCK_TRIES 100000 |
| 20 | 21 |
