summaryrefslogtreecommitdiffstats
path: root/src/vlibmemory/unix_shared_memory_queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlibmemory/unix_shared_memory_queue.h')
-rw-r--r--src/vlibmemory/unix_shared_memory_queue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlibmemory/unix_shared_memory_queue.h b/src/vlibmemory/unix_shared_memory_queue.h
index f758f17c856..13800065beb 100644
--- a/src/vlibmemory/unix_shared_memory_queue.h
+++ b/src/vlibmemory/unix_shared_memory_queue.h
@@ -29,7 +29,7 @@ typedef struct _unix_shared_memory_queue
pthread_cond_t condvar; /* 8 bytes */
int head;
int tail;
- int cursize;
+ volatile int cursize;
int maxsize;
int elsize;
int consumer_pid;